Passed
Push — master ( 773e28...7e8ddc )
by Joas
13:16 queued 11s
created
apps/federation/lib/TrustedServers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		$client = $this->httpClientService->newClient();
232 232
 		try {
233 233
 			$result = $client->get(
234
-				$url . '/status.php',
234
+				$url.'/status.php',
235 235
 				[
236 236
 					'timeout' => 3,
237 237
 					'connect_timeout' => 3,
@@ -284,6 +284,6 @@  discard block
 block discarded – undo
284 284
 			return $url;
285 285
 		}
286 286
 
287
-		return 'https://' . $url;
287
+		return 'https://'.$url;
288 288
 	}
289 289
 }
Please login to merge, or discard this patch.
apps/federation/templates/settings-admin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
 	<ul id="listOfTrustedServers">
21 21
 		<?php foreach ($_['trustedServers'] as $trustedServer) { ?>
22 22
 			<li id="<?php p($trustedServer['id']); ?>">
23
-				<?php if ((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
23
+				<?php if ((int) $trustedServer['status'] === TrustedServers::STATUS_OK) { ?>
24 24
 					<span class="status success"></span>
25 25
 				<?php
26 26
 				} elseif (
27
-					(int)$trustedServer['status'] === TrustedServers::STATUS_PENDING ||
28
-					(int)$trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
27
+					(int) $trustedServer['status'] === TrustedServers::STATUS_PENDING ||
28
+					(int) $trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED
29 29
 				) { ?>
30 30
 					<span class="status indeterminate"></span>
31 31
 				<?php } else {?>
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/InvalidAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		$this
39 39
 			->setIdentifier($invalidId)
40 40
 			->setScheme(self::SCHEME_NULL)
41
-			->setText('Unknown auth mechanism backend ' . $invalidId)
41
+			->setText('Unknown auth mechanism backend '.$invalidId)
42 42
 		;
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/OwnCloud.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@
 block discarded – undo
65 65
 		}
66 66
 
67 67
 		if (isset($params['root'])) {
68
-			$root = '/' . ltrim($params['root'], '/');
68
+			$root = '/'.ltrim($params['root'], '/');
69 69
 		} else {
70 70
 			$root = '/';
71 71
 		}
72 72
 
73 73
 		$params['host'] = $host;
74
-		$params['root'] = $contextPath . self::OC_URL_SUFFIX . $root;
74
+		$params['root'] = $contextPath.self::OC_URL_SUFFIX.$root;
75 75
 		$params['authType'] = Client::AUTH_BASIC;
76 76
 
77 77
 		parent::__construct($params);
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/Swift.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
 		}
168 168
 
169 169
 		$user = $params['user'];
170
-		$this->id = 'swift::' . $user . md5($params['bucket']);
170
+		$this->id = 'swift::'.$user.md5($params['bucket']);
171 171
 
172 172
 		$bucketUrl = new Uri($params['bucket']);
173 173
 		if ($bucketUrl->getHost()) {
174 174
 			$params['bucket'] = basename($bucketUrl->getPath());
175
-			$params['endpoint_url'] = (string)$bucketUrl->withPath(dirname($bucketUrl->getPath()));
175
+			$params['endpoint_url'] = (string) $bucketUrl->withPath(dirname($bucketUrl->getPath()));
176 176
 		}
177 177
 
178 178
 		if (empty($params['url'])) {
@@ -261,16 +261,16 @@  discard block
 block discarded – undo
261 261
 				continue;
262 262
 			}
263 263
 
264
-			if ($this->is_dir($path . '/' . $file)) {
265
-				$this->rmdir($path . '/' . $file);
264
+			if ($this->is_dir($path.'/'.$file)) {
265
+				$this->rmdir($path.'/'.$file);
266 266
 			} else {
267
-				$this->unlink($path . '/' . $file);
267
+				$this->unlink($path.'/'.$file);
268 268
 			}
269 269
 		}
270 270
 
271 271
 		try {
272
-			$this->objectStore->deleteObject($path . '/');
273
-			$this->objectCache->remove($path . '/');
272
+			$this->objectStore->deleteObject($path.'/');
273
+			$this->objectCache->remove($path.'/');
274 274
 		} catch (BadResponseError $e) {
275 275
 			\OC::$server->getLogger()->logException($e, [
276 276
 				'level' => ILogger::ERROR,
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 		}
353 353
 
354 354
 		$stat = [];
355
-		$stat['size'] = (int)$object->contentLength;
355
+		$stat['size'] = (int) $object->contentLength;
356 356
 		$stat['mtime'] = $mtime;
357 357
 		$stat['atime'] = time();
358 358
 		return $stat;
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 		try {
385 385
 			$this->objectStore->deleteObject($path);
386 386
 			$this->objectCache->remove($path);
387
-			$this->objectCache->remove($path . '/');
387
+			$this->objectCache->remove($path.'/');
388 388
 		} catch (BadResponseError $e) {
389 389
 			if ($e->getResponse()->getStatusCode() !== 404) {
390 390
 				\OC::$server->getLogger()->logException($e, [
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 					file_put_contents($tmpFile, $source);
443 443
 				}
444 444
 				$handle = fopen($tmpFile, $mode);
445
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
445
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
446 446
 					$this->writeBack($tmpFile, $path);
447 447
 				});
448 448
 		}
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 		if (is_null($mtime)) {
454 454
 			$mtime = time();
455 455
 		}
456
-		$metadata = ['timestamp' => (string)$mtime];
456
+		$metadata = ['timestamp' => (string) $mtime];
457 457
 		if ($this->file_exists($path)) {
458 458
 			if ($this->is_dir($path) && $path !== '.') {
459 459
 				$path .= '/';
@@ -492,11 +492,11 @@  discard block
 block discarded – undo
492 492
 			try {
493 493
 				$source = $this->fetchObject($path1);
494 494
 				$source->copy([
495
-					'destination' => $this->bucket . '/' . $path2
495
+					'destination' => $this->bucket.'/'.$path2
496 496
 				]);
497 497
 				// invalidate target object to force repopulation on fetch
498 498
 				$this->objectCache->remove($path2);
499
-				$this->objectCache->remove($path2 . '/');
499
+				$this->objectCache->remove($path2.'/');
500 500
 			} catch (BadResponseError $e) {
501 501
 				\OC::$server->getLogger()->logException($e, [
502 502
 					'level' => ILogger::ERROR,
@@ -506,13 +506,13 @@  discard block
 block discarded – undo
506 506
 			}
507 507
 		} elseif ($fileType === 'dir') {
508 508
 			try {
509
-				$source = $this->fetchObject($path1 . '/');
509
+				$source = $this->fetchObject($path1.'/');
510 510
 				$source->copy([
511
-					'destination' => $this->bucket . '/' . $path2 . '/'
511
+					'destination' => $this->bucket.'/'.$path2.'/'
512 512
 				]);
513 513
 				// invalidate target object to force repopulation on fetch
514 514
 				$this->objectCache->remove($path2);
515
-				$this->objectCache->remove($path2 . '/');
515
+				$this->objectCache->remove($path2.'/');
516 516
 			} catch (BadResponseError $e) {
517 517
 				\OC::$server->getLogger()->logException($e, [
518 518
 					'level' => ILogger::ERROR,
@@ -527,8 +527,8 @@  discard block
 block discarded – undo
527 527
 					continue;
528 528
 				}
529 529
 
530
-				$source = $path1 . '/' . $file;
531
-				$target = $path2 . '/' . $file;
530
+				$source = $path1.'/'.$file;
531
+				$target = $path2.'/'.$file;
532 532
 				$this->copy($source, $target);
533 533
 			}
534 534
 		} else {
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
 			$path = '';
609 609
 		}
610 610
 		$cachedContent = $this->getCache()->getFolderContents($path);
611
-		$cachedNames = array_map(function ($content) {
611
+		$cachedNames = array_map(function($content) {
612 612
 			return $content['name'];
613 613
 		}, $cachedContent);
614 614
 		sort($cachedNames);
Please login to merge, or discard this patch.
apps/files_external/lib/Config/SimpleSubstitutionTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 */
64 64
 	protected function checkPlaceholder(): void {
65 65
 		$this->sanitizedPlaceholder = trim(strtolower($this->placeholder));
66
-		if (!(bool)\preg_match('/^[a-z0-9]*$/', $this->sanitizedPlaceholder)) {
66
+		if (!(bool) \preg_match('/^[a-z0-9]*$/', $this->sanitizedPlaceholder)) {
67 67
 			throw new \RuntimeException(sprintf(
68 68
 				'Invalid placeholder %s, only [a-z0-9] are allowed', $this->sanitizedPlaceholder
69 69
 			));
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 */
81 81
 	protected function substituteIfString($value, string $replacement) {
82 82
 		if (is_string($value)) {
83
-			return str_ireplace('$' . $this->sanitizedPlaceholder, $replacement, $value);
83
+			return str_ireplace('$'.$this->sanitizedPlaceholder, $replacement, $value);
84 84
 		}
85 85
 		return $value;
86 86
 	}
Please login to merge, or discard this patch.
apps/files_external/lib/Service/BackendService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * @return Backend[]
217 217
 	 */
218 218
 	public function getAvailableBackends() {
219
-		return array_filter($this->getBackends(), function ($backend) {
219
+		return array_filter($this->getBackends(), function($backend) {
220 220
 			return !$backend->checkDependencies();
221 221
 		});
222 222
 	}
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 * @return AuthMechanism[]
256 256
 	 */
257 257
 	public function getAuthMechanismsByScheme(array $schemes) {
258
-		return array_filter($this->getAuthMechanisms(), function ($authMech) use ($schemes) {
258
+		return array_filter($this->getAuthMechanisms(), function($authMech) use ($schemes) {
259 259
 			return in_array($authMech->getScheme(), $schemes, true);
260 260
 		});
261 261
 	}
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	 */
323 323
 	public function registerConfigHandler(string $placeholder, callable $configHandlerLoader) {
324 324
 		$placeholder = trim(strtolower($placeholder));
325
-		if (!(bool)\preg_match('/^[a-z0-9]*$/', $placeholder)) {
325
+		if (!(bool) \preg_match('/^[a-z0-9]*$/', $placeholder)) {
326 326
 			throw new \RuntimeException(sprintf(
327 327
 				'Invalid placeholder %s, only [a-z0-9] are allowed', $placeholder
328 328
 			));
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 		if ($newLoaded) {
354 354
 			// ensure those with longest placeholders come first,
355 355
 			// to avoid substring matches
356
-			uksort($this->configHandlers, function ($phA, $phB) {
356
+			uksort($this->configHandlers, function($phA, $phB) {
357 357
 				return strlen($phB) <=> strlen($phA);
358 358
 			});
359 359
 		}
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/TokenHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	public function generateToken() {
53 53
 		$token = $this->secureRandom->generate(
54 54
 			self::TOKEN_LENGTH,
55
-			ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS);
55
+			ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_DIGITS);
56 56
 		return $token;
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
apps/theming/lib/Controller/IconController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function getThemedIcon(string $app, string $image): Response {
89 89
 		try {
90
-			$iconFile = $this->imageManager->getCachedImage('icon-' . $app . '-' . str_replace('/', '_',$image));
90
+			$iconFile = $this->imageManager->getCachedImage('icon-'.$app.'-'.str_replace('/', '_', $image));
91 91
 		} catch (NotFoundException $exception) {
92 92
 			$icon = $this->iconBuilder->colorSvg($app, $image);
93 93
 			if ($icon === false || $icon === '') {
94 94
 				return new NotFoundResponse();
95 95
 			}
96
-			$iconFile = $this->imageManager->setCachedImage('icon-' . $app . '-' . str_replace('/', '_',$image), $icon);
96
+			$iconFile = $this->imageManager->setCachedImage('icon-'.$app.'-'.str_replace('/', '_', $image), $icon);
97 97
 		}
98 98
 		if ($iconFile !== false) {
99 99
 			$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/svg+xml']);
@@ -124,17 +124,17 @@  discard block
 block discarded – undo
124 124
 		}
125 125
 		if ($iconFile === null && $this->imageManager->shouldReplaceIcons()) {
126 126
 			try {
127
-				$iconFile = $this->imageManager->getCachedImage('favIcon-' . $app);
127
+				$iconFile = $this->imageManager->getCachedImage('favIcon-'.$app);
128 128
 			} catch (NotFoundException $exception) {
129 129
 				$icon = $this->iconBuilder->getFavicon($app);
130
-				$iconFile = $this->imageManager->setCachedImage('favIcon-' . $app, $icon);
130
+				$iconFile = $this->imageManager->setCachedImage('favIcon-'.$app, $icon);
131 131
 			}
132 132
 			if ($iconFile !== false) {
133 133
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
134 134
 			}
135 135
 		}
136 136
 		if ($response === null) {
137
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon.png';
137
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon.png';
138 138
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
139 139
 		}
140 140
 		$response->cacheFor(86400);
@@ -160,17 +160,17 @@  discard block
 block discarded – undo
160 160
 		}
161 161
 		if ($this->imageManager->shouldReplaceIcons()) {
162 162
 			try {
163
-				$iconFile = $this->imageManager->getCachedImage('touchIcon-' . $app);
163
+				$iconFile = $this->imageManager->getCachedImage('touchIcon-'.$app);
164 164
 			} catch (NotFoundException $exception) {
165 165
 				$icon = $this->iconBuilder->getTouchIcon($app);
166
-				$iconFile = $this->imageManager->setCachedImage('touchIcon-' . $app, $icon);
166
+				$iconFile = $this->imageManager->setCachedImage('touchIcon-'.$app, $icon);
167 167
 			}
168 168
 			if ($iconFile !== false) {
169 169
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/png']);
170 170
 			}
171 171
 		}
172 172
 		if ($response === null) {
173
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon-touch.png';
173
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon-touch.png';
174 174
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/png']);
175 175
 		}
176 176
 		$response->cacheFor(86400);
Please login to merge, or discard this patch.