Passed
Push — master ( a0771a...052ddc )
by Christoph
12:47 queued 10s
created
themes/example/defaults.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 	 * @return string short footer
91 91
 	 */
92 92
 	public function getShortFooter() {
93
-		$footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
94
-			'<br/>' . $this->getSlogan();
93
+		$footer = '© '.date('Y').' <a href="'.$this->getBaseUrl().'" target="_blank">'.$this->getEntity().'</a>'.
94
+			'<br/>'.$this->getSlogan();
95 95
 
96 96
 		return $footer;
97 97
 	}
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 	 * @return string long footer
102 102
 	 */
103 103
 	public function getLongFooter() {
104
-		$footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
105
-			'<br/>' . $this->getSlogan();
104
+		$footer = '© '.date('Y').' <a href="'.$this->getBaseUrl().'" target="_blank">'.$this->getEntity().'</a>'.
105
+			'<br/>'.$this->getSlogan();
106 106
 
107 107
 		return $footer;
108 108
 	}
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 	 * @return string documentation link
113 113
 	 */
114 114
 	public function buildDocLinkToKey($key) {
115
-		return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key;
115
+		return $this->getDocBaseUrl().'/server/15/go.php?to='.$key;
116 116
 	}
117 117
 
118 118
 
Please login to merge, or discard this patch.
lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 			return;
68 68
 		}
69 69
 
70
-		$folders = array_filter($folders, function (ISimpleFolder $folder) {
70
+		$folders = array_filter($folders, function(ISimpleFolder $folder) {
71 71
 			return $folder->fileExists('photo.');
72 72
 		});
73 73
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			return;
76 76
 		}
77 77
 
78
-		$output->info('Delete ' . count($folders) . ' "photo." files');
78
+		$output->info('Delete '.count($folders).' "photo." files');
79 79
 
80 80
 		foreach ($folders as $folder) {
81 81
 			try {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 				$folder->getFile('photo.')->delete();
84 84
 			} catch (\Exception $e) {
85 85
 				$this->logger->logException($e);
86
-				$output->warning('Could not delete file "dav-photocache/' . $folder->getName() . '/photo."');
86
+				$output->warning('Could not delete file "dav-photocache/'.$folder->getName().'/photo."');
87 87
 			}
88 88
 		}
89 89
 	}
Please login to merge, or discard this patch.
lib/private/Federation/CloudFederationProviderManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 								IClientService $httpClientService,
75 75
 								ICloudIdManager $cloudIdManager,
76 76
 								ILogger $logger) {
77
-		$this->cloudFederationProvider= [];
77
+		$this->cloudFederationProvider = [];
78 78
 		$this->appManager = $appManager;
79 79
 		$this->httpClientService = $httpClientService;
80 80
 		$this->cloudIdManager = $cloudIdManager;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
 		$client = $this->httpClientService->newClient();
142 142
 		try {
143
-			$response = $client->post($ocmEndPoint . '/shares', [
143
+			$response = $client->post($ocmEndPoint.'/shares', [
144 144
 				'body' => json_encode($share->getShare()),
145 145
 				'headers' => ['content-type' => 'application/json'],
146 146
 				'timeout' => 10,
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
 		$client = $this->httpClientService->newClient();
182 182
 		try {
183
-			$response = $client->post($ocmEndPoint . '/notifications', [
183
+			$response = $client->post($ocmEndPoint.'/notifications', [
184 184
 				'body' => json_encode($notification->getMessage()),
185 185
 				'headers' => ['content-type' => 'application/json'],
186 186
 				'timeout' => 10,
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 			}
193 193
 		} catch (\Exception $e) {
194 194
 			// log the error and return false
195
-			$this->logger->error('error while sending notification for federated share: ' . $e->getMessage());
195
+			$this->logger->error('error while sending notification for federated share: '.$e->getMessage());
196 196
 		}
197 197
 
198 198
 		return false;
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
 		$client = $this->httpClientService->newClient();
222 222
 		try {
223
-			$response = $client->get($url . '/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]);
223
+			$response = $client->get($url.'/ocm-provider/', ['timeout' => 10, 'connect_timeout' => 10]);
224 224
 		} catch (\Exception $e) {
225 225
 			$this->ocmEndPoints[$url] = '';
226 226
 			return '';
Please login to merge, or discard this patch.
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,13 +72,13 @@
 block discarded – undo
72 72
 
73 73
 	private function disableApp(string $appId, OutputInterface $output): void {
74 74
 		if ($this->appManager->isInstalled($appId) === false) {
75
-			$output->writeln('No such app enabled: ' . $appId);
75
+			$output->writeln('No such app enabled: '.$appId);
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		try {
80 80
 			$this->appManager->disableApp($appId);
81
-			$output->writeln($appId . ' disabled');
81
+			$output->writeln($appId.' disabled');
82 82
 		} catch (\Exception $e) {
83 83
 			$output->writeln($e->getMessage());
84 84
 			$this->exitCode = 2;
Please login to merge, or discard this patch.
core/Service/LoginFlowV2Service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
 	private function hashToken(string $token): string {
213 213
 		$secret = $this->config->getSystemValue('secret');
214
-		return hash('sha512', $token . $secret);
214
+		return hash('sha512', $token.$secret);
215 215
 	}
216 216
 
217 217
 	private function getKeyPair(): array {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		while ($error = openssl_error_string()) {
242 242
 			$errors[] = $error;
243 243
 		}
244
-		$this->logger->critical('Something is wrong with your openssl setup: ' . implode(', ', $errors));
244
+		$this->logger->critical('Something is wrong with your openssl setup: '.implode(', ', $errors));
245 245
 	}
246 246
 
247 247
 	private function encryptPassword(string $password, string $publicKey): string {
Please login to merge, or discard this patch.
lib/private/FullTextSearch/Model/IndexDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@
 block discarded – undo
389 389
 		foreach ($ak as $source) {
390 390
 			$tags = $this->subTags[$source];
391 391
 			foreach ($tags as $tag) {
392
-				$subTags[] = $source . '_' . $tag;
392
+				$subTags[] = $source.'_'.$tag;
393 393
 			}
394 394
 		}
395 395
 
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 		$providers = $this->registry->getProviderStates($event->getUser());
54 54
 
55 55
 		// Loop over all providers. If all are disabled we remove the job
56
-		$state = array_reduce($providers, function (bool $carry, bool $enabled) {
56
+		$state = array_reduce($providers, function(bool $carry, bool $enabled) {
57 57
 			return $carry || $enabled;
58 58
 		}, false);
59 59
 
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/PgSqlExpressionBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 	public function castColumn($column, $type) {
40 40
 		switch ($type) {
41 41
 			case IQueryBuilder::PARAM_INT:
42
-				return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS INT)');
42
+				return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS INT)');
43 43
 			case IQueryBuilder::PARAM_STR:
44
-				return new QueryFunction('CAST(' . $this->helper->quoteColumnName($column) . ' AS TEXT)');
44
+				return new QueryFunction('CAST('.$this->helper->quoteColumnName($column).' AS TEXT)');
45 45
 			default:
46 46
 				return parent::castColumn($column, $type);
47 47
 		}
Please login to merge, or discard this patch.
apps/files_external/lib/Command/Notify.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 			return 1;
129 129
 		}
130 130
 		if (!$storage instanceof INotifyStorage) {
131
-			$output->writeln('<error>Mount of type "' . $mount->getBackend()->getText() . '" does not support active update notifications</error>');
131
+			$output->writeln('<error>Mount of type "'.$mount->getBackend()->getText().'" does not support active update notifications</error>');
132 132
 			return 1;
133 133
 		}
134 134
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 		$path = trim($input->getOption('path'), '/');
138 138
 		$notifyHandler = $storage->notify($path);
139 139
 		$this->selfTest($storage, $notifyHandler, $verbose, $output);
140
-		$notifyHandler->listen(function (IChange $change) use ($mount, $verbose, $output) {
140
+		$notifyHandler->listen(function(IChange $change) use ($mount, $verbose, $output) {
141 141
 			if ($verbose) {
142 142
 				$this->logUpdate($change, $output);
143 143
 			}
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
 			$storageIds = $this->getStorageIds($mountId);
169 169
 		}
170 170
 		if (count($storageIds) === 0) {
171
-			throw new StorageNotAvailableException('No storages found by mount ID ' . $mountId);
171
+			throw new StorageNotAvailableException('No storages found by mount ID '.$mountId);
172 172
 		}
173 173
 		$storageIds = array_map('intval', $storageIds);
174 174
 
175 175
 		$result = $this->updateParent($storageIds, $parent);
176 176
 		if ($result === 0) {
177 177
 			//TODO: Find existing parent further up the tree in the database and register that folder instead.
178
-			$this->logger->info('Failed updating parent for "' . $path . '" while trying to register change. It may not exist in the filecache.');
178
+			$this->logger->info('Failed updating parent for "'.$path.'" while trying to register change. It may not exist in the filecache.');
179 179
 		}
180 180
 	}
181 181
 
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
 				return;
198 198
 		}
199 199
 
200
-		$text .= ' ' . $change->getPath();
200
+		$text .= ' '.$change->getPath();
201 201
 		if ($change instanceof IRenameChange) {
202
-			$text .= ' to ' . $change->getTargetPath();
202
+			$text .= ' to '.$change->getTargetPath();
203 203
 		}
204 204
 
205 205
 		$output->writeln($text);
Please login to merge, or discard this patch.