Passed
Push — master ( 0c0397...46bfe3 )
by Roeland
21:08 queued 10:02
created
apps/settings/composer/composer/ClassLoader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath . '\\';
380
+                $search = $subPath.'\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
383 383
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
-                        if (file_exists($file = $dir . $pathEnd)) {
384
+                        if (file_exists($file = $dir.$pathEnd)) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.
apps/settings/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Settings\\' => array($baseDir . '/../lib'),
9
+    'OCA\\Settings\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/settings/composer/composer/autoload_real.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     public static function loadClassLoader($class)
10 10
     {
11 11
         if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
12
+            require __DIR__.'/ClassLoader.php';
13 13
         }
14 14
     }
15 15
 
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27 27
         if ($useStaticLoader) {
28
-            require_once __DIR__ . '/autoload_static.php';
28
+            require_once __DIR__.'/autoload_static.php';
29 29
 
30 30
             call_user_func(\Composer\Autoload\ComposerStaticInitSettings::getInitializer($loader));
31 31
         } else {
32
-            $classMap = require __DIR__ . '/autoload_classmap.php';
32
+            $classMap = require __DIR__.'/autoload_classmap.php';
33 33
             if ($classMap) {
34 34
                 $loader->addClassMap($classMap);
35 35
             }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/PropfindPlugin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,49 +63,49 @@
 block discarded – undo
63 63
 			return;
64 64
 		}
65 65
 
66
-		$propFind->handle(self::TRASHBIN_FILENAME, function () use ($node) {
66
+		$propFind->handle(self::TRASHBIN_FILENAME, function() use ($node) {
67 67
 			return $node->getFilename();
68 68
 		});
69 69
 
70
-		$propFind->handle(self::TRASHBIN_ORIGINAL_LOCATION, function () use ($node) {
70
+		$propFind->handle(self::TRASHBIN_ORIGINAL_LOCATION, function() use ($node) {
71 71
 			return $node->getOriginalLocation();
72 72
 		});
73 73
 
74
-		$propFind->handle(self::TRASHBIN_TITLE, function () use ($node) {
74
+		$propFind->handle(self::TRASHBIN_TITLE, function() use ($node) {
75 75
 			return $node->getTitle();
76 76
 		});
77 77
 
78
-		$propFind->handle(self::TRASHBIN_DELETION_TIME, function () use ($node) {
78
+		$propFind->handle(self::TRASHBIN_DELETION_TIME, function() use ($node) {
79 79
 			return $node->getDeletionTime();
80 80
 		});
81 81
 
82
-		$propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function () use ($node) {
82
+		$propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function() use ($node) {
83 83
 			return $node->getSize();
84 84
 		});
85 85
 
86
-		$propFind->handle(FilesPlugin::FILEID_PROPERTYNAME, function () use ($node) {
86
+		$propFind->handle(FilesPlugin::FILEID_PROPERTYNAME, function() use ($node) {
87 87
 			return $node->getFileId();
88 88
 		});
89 89
 
90
-		$propFind->handle(FilesPlugin::PERMISSIONS_PROPERTYNAME, function () {
90
+		$propFind->handle(FilesPlugin::PERMISSIONS_PROPERTYNAME, function() {
91 91
 			return 'GD'; // read + delete
92 92
 		});
93 93
 
94
-		$propFind->handle(FilesPlugin::GETETAG_PROPERTYNAME, function () use ($node) {
94
+		$propFind->handle(FilesPlugin::GETETAG_PROPERTYNAME, function() use ($node) {
95 95
 			// add fake etag, it is only needed to identify the preview image
96 96
 			return $node->getLastModified();
97 97
 		});
98 98
 
99
-		$propFind->handle(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, function () use ($node) {
99
+		$propFind->handle(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, function() use ($node) {
100 100
 			// add fake etag, it is only needed to identify the preview image
101 101
 			return $node->getFileId();
102 102
 		});
103 103
 
104
-		$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
104
+		$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function() use ($node) {
105 105
 			return $this->previewManager->isAvailable($node->getFileInfo());
106 106
 		});
107 107
 
108
-		$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function () {
108
+		$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function() {
109 109
 			return '';
110 110
 		});
111 111
 	}
Please login to merge, or discard this patch.
lib/private/Authentication/Token/PublicKeyTokenProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 			}
101 101
 		}
102 102
 
103
-		if ((int)$token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
103
+		if ((int) $token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
104 104
 			throw new ExpiredTokenException($token);
105 105
 		}
106 106
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 			throw new InvalidTokenException();
119 119
 		}
120 120
 
121
-		if ((int)$token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
121
+		if ((int) $token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
122 122
 			throw new ExpiredTokenException($token);
123 123
 		}
124 124
 
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 		$this->cache->clear();
174 174
 
175 175
 		$olderThan = $this->time->getTime() - (int) $this->config->getSystemValue('session_lifetime', 60 * 60 * 24);
176
-		$this->logger->debug('Invalidating session tokens older than ' . date('c', $olderThan), ['app' => 'cron']);
176
+		$this->logger->debug('Invalidating session tokens older than '.date('c', $olderThan), ['app' => 'cron']);
177 177
 		$this->mapper->invalidateOld($olderThan, IToken::DO_NOT_REMEMBER);
178 178
 		$rememberThreshold = $this->time->getTime() - (int) $this->config->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
179
-		$this->logger->debug('Invalidating remembered session tokens older than ' . date('c', $rememberThreshold), ['app' => 'cron']);
179
+		$this->logger->debug('Invalidating remembered session tokens older than '.date('c', $rememberThreshold), ['app' => 'cron']);
180 180
 		$this->mapper->invalidateOld($rememberThreshold, IToken::REMEMBER);
181 181
 	}
182 182
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
 	private function encrypt(string $plaintext, string $token): string {
265 265
 		$secret = $this->config->getSystemValue('secret');
266
-		return $this->crypto->encrypt($plaintext, $token . $secret);
266
+		return $this->crypto->encrypt($plaintext, $token.$secret);
267 267
 	}
268 268
 
269 269
 	/**
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	private function decrypt(string $cipherText, string $token): string {
273 273
 		$secret = $this->config->getSystemValue('secret');
274 274
 		try {
275
-			return $this->crypto->decrypt($cipherText, $token . $secret);
275
+			return $this->crypto->decrypt($cipherText, $token.$secret);
276 276
 		} catch (\Exception $ex) {
277 277
 			// Delete the invalid token
278 278
 			$this->invalidateToken($token);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
 	private function hashToken(string $token): string {
298 298
 		$secret = $this->config->getSystemValue('secret');
299
-		return hash('sha512', $token . $secret);
299
+		return hash('sha512', $token.$secret);
300 300
 	}
301 301
 
302 302
 	/**
@@ -409,6 +409,6 @@  discard block
 block discarded – undo
409 409
 		while ($error = openssl_error_string()) {
410 410
 			$errors[] = $error;
411 411
 		}
412
-		$this->logger->critical('Something is wrong with your openssl setup: ' . implode(', ', $errors));
412
+		$this->logger->critical('Something is wrong with your openssl setup: '.implode(', ', $errors));
413 413
 	}
414 414
 }
Please login to merge, or discard this patch.
lib/private/Files/Cache/Storage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,17 +71,17 @@  discard block
 block discarded – undo
71 71
 		$this->storageId = self::adjustStorageId($this->storageId);
72 72
 
73 73
 		if ($row = self::getStorageById($this->storageId)) {
74
-			$this->numericId = (int)$row['numeric_id'];
74
+			$this->numericId = (int) $row['numeric_id'];
75 75
 		} else {
76 76
 			$connection = \OC::$server->getDatabaseConnection();
77 77
 			$available = $isAvailable ? 1 : 0;
78 78
 			if ($connection->insertIfNotExist('*PREFIX*storages', ['id' => $this->storageId, 'available' => $available])) {
79
-				$this->numericId = (int)$connection->lastInsertId('*PREFIX*storages');
79
+				$this->numericId = (int) $connection->lastInsertId('*PREFIX*storages');
80 80
 			} else {
81 81
 				if ($row = self::getStorageById($this->storageId)) {
82
-					$this->numericId = (int)$row['numeric_id'];
82
+					$this->numericId = (int) $row['numeric_id'];
83 83
 				} else {
84
-					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: ' . $this->storageId);
84
+					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: '.$this->storageId);
85 85
 				}
86 86
 			}
87 87
 		}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		$storageId = self::adjustStorageId($storageId);
145 145
 
146 146
 		if ($row = self::getStorageById($storageId)) {
147
-			return (int)$row['numeric_id'];
147
+			return (int) $row['numeric_id'];
148 148
 		} else {
149 149
 			return null;
150 150
 		}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	public function getAvailability() {
157 157
 		if ($row = self::getStorageById($this->storageId)) {
158 158
 			return [
159
-				'available' => (int)$row['available'] === 1,
159
+				'available' => (int) $row['available'] === 1,
160 160
 				'last_checked' => $row['last_checked']
161 161
 			];
162 162
 		} else {
Please login to merge, or discard this patch.
lib/private/Template/SCSSCacher.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
 		$this->defaults     = $defaults;
117 117
 		$this->serverRoot   = $serverRoot;
118 118
 		$this->cacheFactory = $cacheFactory;
119
-		$this->depsCache    = $cacheFactory->createDistributed('SCSS-deps-' . md5($this->urlGenerator->getBaseUrl()));
120
-		$this->isCachedCache = $cacheFactory->createDistributed('SCSS-cached-' . md5($this->urlGenerator->getBaseUrl()));
121
-		$lockingCache = $cacheFactory->createDistributed('SCSS-locks-' . md5($this->urlGenerator->getBaseUrl()));
119
+		$this->depsCache    = $cacheFactory->createDistributed('SCSS-deps-'.md5($this->urlGenerator->getBaseUrl()));
120
+		$this->isCachedCache = $cacheFactory->createDistributed('SCSS-cached-'.md5($this->urlGenerator->getBaseUrl()));
121
+		$lockingCache = $cacheFactory->createDistributed('SCSS-locks-'.md5($this->urlGenerator->getBaseUrl()));
122 122
 		if (!($lockingCache instanceof IMemcache)) {
123 123
 			$lockingCache = new NullCache();
124 124
 		}
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 * @throws NotPermittedException
138 138
 	 */
139 139
 	public function process(string $root, string $file, string $app): bool {
140
-		$path = explode('/', $root . '/' . $file);
140
+		$path = explode('/', $root.'/'.$file);
141 141
 
142 142
 		$fileNameSCSS = array_pop($path);
143 143
 		$fileNameCSS  = $this->prependVersionPrefix($this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileNameSCSS)), $app);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 			$folder = $this->appData->newFolder($app);
158 158
 		}
159 159
 
160
-		$lockKey = $webDir . '/' . $fileNameSCSS;
160
+		$lockKey = $webDir.'/'.$fileNameSCSS;
161 161
 
162 162
 		if (!$this->lockingCache->add($lockKey, 'locked!', 120)) {
163 163
 			$retry = 0;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 				if (!$this->variablesChanged() && $this->isCached($fileNameCSS, $app)) {
167 167
 					// Inject icons vars css if any
168 168
 					$this->lockingCache->remove($lockKey);
169
-					$this->logger->debug('SCSSCacher: ' .$lockKey.' is now available after '.$retry.'s. Moving on...', ['app' => 'core']);
169
+					$this->logger->debug('SCSSCacher: '.$lockKey.' is now available after '.$retry.'s. Moving on...', ['app' => 'core']);
170 170
 					return $this->injectCssVariablesIfAny();
171 171
 				}
172 172
 				$this->logger->debug('SCSSCacher: scss cache file locked for '.$lockKey, ['app' => 'core']);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 * @return boolean
215 215
 	 */
216 216
 	private function isCached(string $fileNameCSS, string $app) {
217
-		$key = $this->config->getSystemValue('version') . '/' . $app . '/' . $fileNameCSS;
217
+		$key = $this->config->getSystemValue('version').'/'.$app.'/'.$fileNameCSS;
218 218
 
219 219
 		// If the file mtime is more recent than our cached one,
220 220
 		// let's consider the file is properly cached
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
 		try {
237 237
 			$cachedFile = $folder->getFile($fileNameCSS);
238 238
 			if ($cachedFile->getSize() > 0) {
239
-				$depFileName = $fileNameCSS . '.deps';
240
-				$deps        = $this->depsCache->get($folder->getName() . '-' . $depFileName);
239
+				$depFileName = $fileNameCSS.'.deps';
240
+				$deps        = $this->depsCache->get($folder->getName().'-'.$depFileName);
241 241
 				if ($deps === null) {
242 242
 					$depFile = $folder->getFile($depFileName);
243 243
 					$deps    = $depFile->getContent();
244 244
 					// Set to memcache for next run
245
-					$this->depsCache->set($folder->getName() . '-' . $depFileName, $deps);
245
+					$this->depsCache->set($folder->getName().'-'.$depFileName, $deps);
246 246
 				}
247 247
 				$deps = json_decode($deps, true);
248 248
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$scss = new Compiler();
292 292
 		$scss->setImportPaths([
293 293
 			$path,
294
-			$this->serverRoot . '/core/css/'
294
+			$this->serverRoot.'/core/css/'
295 295
 		]);
296 296
 
297 297
 		// Continue after throw
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 			$cachedfile = $folder->newFile($fileNameCSS);
312 312
 		}
313 313
 
314
-		$depFileName = $fileNameCSS . '.deps';
314
+		$depFileName = $fileNameCSS.'.deps';
315 315
 		try {
316 316
 			$depFile = $folder->getFile($depFileName);
317 317
 		} catch (NotFoundException $e) {
@@ -321,11 +321,11 @@  discard block
 block discarded – undo
321 321
 		// Compile
322 322
 		try {
323 323
 			$compiledScss = $scss->compile(
324
-				'$webroot: \'' . $this->getRoutePrefix() . '\';' .
325
-				$this->getInjectedVariables() .
326
-				'@import "variables.scss";' .
327
-				'@import "functions.scss";' .
328
-				'@import "' . $fileNameSCSS . '";');
324
+				'$webroot: \''.$this->getRoutePrefix().'\';'.
325
+				$this->getInjectedVariables().
326
+				'@import "variables.scss";'.
327
+				'@import "functions.scss";'.
328
+				'@import "'.$fileNameSCSS.'";');
329 329
 		} catch (ParserException $e) {
330 330
 			$this->logger->logException($e, ['app' => 'core']);
331 331
 
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
 
338 338
 		// Gzip file
339 339
 		try {
340
-			$gzipFile = $folder->getFile($fileNameCSS . '.gzip'); # Safari doesn't like .gz
340
+			$gzipFile = $folder->getFile($fileNameCSS.'.gzip'); # Safari doesn't like .gz
341 341
 		} catch (NotFoundException $e) {
342
-			$gzipFile = $folder->newFile($fileNameCSS . '.gzip'); # Safari doesn't like .gz
342
+			$gzipFile = $folder->newFile($fileNameCSS.'.gzip'); # Safari doesn't like .gz
343 343
 		}
344 344
 
345 345
 		try {
@@ -347,13 +347,13 @@  discard block
 block discarded – undo
347 347
 			$cachedfile->putContent($data);
348 348
 			$deps = json_encode($scss->getParsedFiles());
349 349
 			$depFile->putContent($deps);
350
-			$this->depsCache->set($folder->getName() . '-' . $depFileName, $deps);
350
+			$this->depsCache->set($folder->getName().'-'.$depFileName, $deps);
351 351
 			$gzipFile->putContent(gzencode($data, 9));
352
-			$this->logger->debug('SCSSCacher: ' . $webDir . '/' . $fileNameSCSS . ' compiled and successfully cached', ['app' => 'core']);
352
+			$this->logger->debug('SCSSCacher: '.$webDir.'/'.$fileNameSCSS.' compiled and successfully cached', ['app' => 'core']);
353 353
 
354 354
 			return true;
355 355
 		} catch (NotPermittedException $e) {
356
-			$this->logger->error('SCSSCacher: unable to cache: ' . $fileNameSCSS);
356
+			$this->logger->error('SCSSCacher: unable to cache: '.$fileNameSCSS);
357 357
 
358 358
 			return false;
359 359
 		}
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 				try {
380 380
 					$file->delete();
381 381
 				} catch (NotPermittedException $e) {
382
-					$this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: ' . $file->getName()]);
382
+					$this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: '.$file->getName()]);
383 383
 				}
384 384
 			}
385 385
 		}
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 		}
397 397
 		$variables = '';
398 398
 		foreach ($this->defaults->getScssVariables() as $key => $value) {
399
-			$variables .= '$' . $key . ': ' . $value . ' !default;';
399
+			$variables .= '$'.$key.': '.$value.' !default;';
400 400
 		}
401 401
 
402 402
 		// check for valid variables / otherwise fall back to defaults
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 	 */
420 420
 	private function rebaseUrls(string $css, string $webDir): string {
421 421
 		$re    = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
422
-		$subst = 'url(\'' . $webDir . '/$1\')';
422
+		$subst = 'url(\''.$webDir.'/$1\')';
423 423
 
424 424
 		return preg_replace($re, $subst, $css);
425 425
 	}
@@ -448,12 +448,12 @@  discard block
 block discarded – undo
448 448
 	 * @return string
449 449
 	 */
450 450
 	private function prependBaseurlPrefix(string $cssFile): string {
451
-		return substr(md5($this->urlGenerator->getBaseUrl() . $this->getRoutePrefix()), 0, 4) . '-' . $cssFile;
451
+		return substr(md5($this->urlGenerator->getBaseUrl().$this->getRoutePrefix()), 0, 4).'-'.$cssFile;
452 452
 	}
453 453
 
454 454
 	private function getRoutePrefix() {
455 455
 		$frontControllerActive = ($this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true');
456
-		$prefix = \OC::$WEBROOT . '/index.php';
456
+		$prefix = \OC::$WEBROOT.'/index.php';
457 457
 		if ($frontControllerActive) {
458 458
 			$prefix = \OC::$WEBROOT;
459 459
 		}
@@ -469,11 +469,11 @@  discard block
 block discarded – undo
469 469
 	private function prependVersionPrefix(string $cssFile, string $appId): string {
470 470
 		$appVersion = \OC_App::getAppVersion($appId);
471 471
 		if ($appVersion !== '0') {
472
-			return substr(md5($appVersion), 0, 4) . '-' . $cssFile;
472
+			return substr(md5($appVersion), 0, 4).'-'.$cssFile;
473 473
 		}
474 474
 		$coreVersion = \OC_Util::getVersionString();
475 475
 
476
-		return substr(md5($coreVersion), 0, 4) . '-' . $cssFile;
476
+		return substr(md5($coreVersion), 0, 4).'-'.$cssFile;
477 477
 	}
478 478
 
479 479
 	/**
@@ -491,10 +491,10 @@  discard block
 block discarded – undo
491 491
 			$appDirectoryPath = explode($appName, $path)[1];
492 492
 			// Remove the webroot
493 493
 
494
-			return str_replace($webRoot, '', $appWebPath . $appDirectoryPath);
494
+			return str_replace($webRoot, '', $appWebPath.$appDirectoryPath);
495 495
 		}
496 496
 
497
-		return $webRoot . substr($path, strlen($serverRoot));
497
+		return $webRoot.substr($path, strlen($serverRoot));
498 498
 	}
499 499
 
500 500
 	/**
Please login to merge, or discard this patch.
core/Command/User/ListCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	protected function execute(InputInterface $input, OutputInterface $output) {
86 86
 		$users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
87 87
 
88
-		$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
88
+		$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool) $input->getOption('info')));
89 89
 	}
90 90
 
91 91
 	/**
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
 	 * @return array
95 95
 	 */
96 96
 	private function formatUsers(array $users, bool $detailed = false) {
97
-		$keys = array_map(function (IUser $user) {
97
+		$keys = array_map(function(IUser $user) {
98 98
 			return $user->getUID();
99 99
 		}, $users);
100 100
 	
101
-		$values = array_map(function (IUser $user) use ($detailed) {
101
+		$values = array_map(function(IUser $user) use ($detailed) {
102 102
 			if ($detailed) {
103 103
 				$groups = $this->groupManager->getUserGroupIds($user);
104 104
 				return [
Please login to merge, or discard this patch.
apps/settings/templates/settings/admin/security.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@
 block discarded – undo
29 29
 ?>
30 30
 
31 31
 <div id="two-factor-auth" class="section">
32
-	<h2><?php p($l->t('Two-Factor Authentication'));?></h2>
33
-	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-2fa')); ?>"></a>
32
+	<h2><?php p($l->t('Two-Factor Authentication')); ?></h2>
33
+	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation')); ?>" href="<?php p(link_to_docs('admin-2fa')); ?>"></a>
34 34
 	<div id="two-factor-auth-settings"></div>
35 35
 </div>
36 36
 
37 37
 <div class="section" id='encryptionAPI'>
38 38
 	<h2><?php p($l->t('Server-side encryption')); ?></h2>
39 39
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
40
-	   title="<?php p($l->t('Open documentation'));?>"
40
+	   title="<?php p($l->t('Open documentation')); ?>"
41 41
 	   href="<?php p(link_to_docs('admin-encryption')); ?>"></a>
42 42
 	<p class="settings-hint"><?php p($l->t('Server-side encryption makes it possible to encrypt files which are uploaded to this server. This comes with limitations like a performance penalty, so enable this only if needed.')); ?></p>
43 43
 	<p id="enable">
Please login to merge, or discard this patch.