@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | $data = $this->updater->check(); |
45 | 45 | $result = []; |
46 | 46 | |
47 | - if(isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) { |
|
47 | + if (isset($data['version']) && $data['version'] !== '' && $data['version'] !== []) { |
|
48 | 48 | $result['updateAvailable'] = true; |
49 | 49 | $result['updateVersion'] = $data['versionstring']; |
50 | 50 | $result['updaterEnabled'] = $data['autoupdater'] === '1'; |
51 | - if(substr($data['web'], 0, 8) === 'https://') { |
|
51 | + if (substr($data['web'], 0, 8) === 'https://') { |
|
52 | 52 | $result['updateLink'] = $data['web']; |
53 | 53 | } |
54 | - if(substr($data['url'], 0, 8) === 'https://') { |
|
54 | + if (substr($data['url'], 0, 8) === 'https://') { |
|
55 | 55 | $result['downloadLink'] = $data['url']; |
56 | 56 | } |
57 | 57 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param array $data |
66 | 66 | */ |
67 | 67 | public function populateJavaScriptVariables(array $data) { |
68 | - $data['array']['oc_updateState'] = json_encode([ |
|
68 | + $data['array']['oc_updateState'] = json_encode([ |
|
69 | 69 | 'updateAvailable' => true, |
70 | 70 | 'updateVersion' => $this->getUpdateState()['updateVersion'], |
71 | 71 | 'updateLink' => isset($this->getUpdateState()['updateLink']) ? $this->getUpdateState()['updateLink'] : '', |
@@ -102,7 +102,7 @@ |
||
102 | 102 | $currentChannel = Util::getChannel(); |
103 | 103 | |
104 | 104 | // Remove the currently used channel from the channels list |
105 | - if(($key = array_search($currentChannel, $channels)) !== false) { |
|
105 | + if (($key = array_search($currentChannel, $channels)) !== false) { |
|
106 | 106 | unset($channels[$key]); |
107 | 107 | } |
108 | 108 | $updateState = $this->updateChecker->getUpdateState(); |