@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function check() { |
| 57 | 57 | // Look up the cache - it is invalidated all 30 minutes |
| 58 | - if (((int)$this->config->getAppValue('core', 'lastupdatedat') + 1800) > time()) { |
|
| 58 | + if (((int) $this->config->getAppValue('core', 'lastupdatedat') + 1800) > time()) { |
|
| 59 | 59 | return json_decode($this->config->getAppValue('core', 'lastupdateResult'), true); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $versionString = implode('x', $version); |
| 80 | 80 | |
| 81 | 81 | //fetch xml data from updater |
| 82 | - $url = $updaterUrl . '?version=' . $versionString; |
|
| 82 | + $url = $updaterUrl.'?version='.$versionString; |
|
| 83 | 83 | |
| 84 | 84 | $tmp = []; |
| 85 | 85 | try { |
@@ -93,12 +93,12 @@ discard block |
||
| 93 | 93 | $data = @simplexml_load_string($xml); |
| 94 | 94 | libxml_disable_entity_loader($loadEntities); |
| 95 | 95 | if ($data !== false) { |
| 96 | - $tmp['version'] = (string)$data->version; |
|
| 97 | - $tmp['versionstring'] = (string)$data->versionstring; |
|
| 98 | - $tmp['url'] = (string)$data->url; |
|
| 99 | - $tmp['web'] = (string)$data->web; |
|
| 100 | - $tmp['autoupdater'] = (string)$data->autoupdater; |
|
| 101 | - $tmp['eol'] = isset($data->eol) ? (string)$data->eol : '0'; |
|
| 96 | + $tmp['version'] = (string) $data->version; |
|
| 97 | + $tmp['versionstring'] = (string) $data->versionstring; |
|
| 98 | + $tmp['url'] = (string) $data->url; |
|
| 99 | + $tmp['web'] = (string) $data->web; |
|
| 100 | + $tmp['autoupdater'] = (string) $data->autoupdater; |
|
| 101 | + $tmp['eol'] = isset($data->eol) ? (string) $data->eol : '0'; |
|
| 102 | 102 | } else { |
| 103 | 103 | libxml_clear_errors(); |
| 104 | 104 | } |