/**
  * Gets the update data from the update URL provided by the given {@link Installation}.
  * @param  Installation $inst
  * @return array        JSON decoded update data or an empty array if the data could not be successfully read.
  */
 protected static function getUpdateData($inst)
 {
     $url = $inst->getUpdateUrl();
     if (!is_url($url)) {
         return array();
     }
     $updateData = @file_get_contents($url);
     if ($updateData === false) {
         return array();
     }
     $updateData = @json_decode($updateData, true);
     if ($updateData === null) {
         return array();
     }
     return $updateData;
 }