Completed
Pull Request — master (#7863)
by Joas
35:34 queued 18:18
created
apps/updatenotification/lib/UpdateChecker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'] : '',
Please login to merge, or discard this patch.
apps/updatenotification/lib/Controller/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.