@@ -370,18 +370,18 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $l = \OC::$server->getL10N('files'); |
34 | 34 | |
35 | 35 | // Load the files |
36 | -$dir = isset($_GET['dir']) ? (string)$_GET['dir'] : ''; |
|
36 | +$dir = isset($_GET['dir']) ? (string) $_GET['dir'] : ''; |
|
37 | 37 | $dir = \OC\Files\Filesystem::normalizePath($dir); |
38 | 38 | |
39 | 39 | try { |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | $data = []; |
47 | - $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir='; |
|
47 | + $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php').'?dir='; |
|
48 | 48 | |
49 | 49 | $permissions = $dirInfo->getPermissions(); |
50 | 50 | |
51 | - $sortAttribute = isset($_GET['sort']) ? (string)$_GET['sort'] : 'name'; |
|
51 | + $sortAttribute = isset($_GET['sort']) ? (string) $_GET['sort'] : 'name'; |
|
52 | 52 | $sortDirection = isset($_GET['sortdirection']) ? ($_GET['sortdirection'] === 'desc') : false; |
53 | 53 | $mimetypeFilters = isset($_GET['mimetypes']) ? json_decode($_GET['mimetypes']) : ''; |
54 | 54 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } else { |
35 | 35 | http_response_code(307); |
36 | 36 | } |
37 | - header('Location: ' . $urlGenerator->linkToRoute($route, ['token' => $token])); |
|
37 | + header('Location: '.$urlGenerator->linkToRoute($route, ['token' => $token])); |
|
38 | 38 | } else { |
39 | 39 | http_response_code(404); |
40 | 40 | $tmpl = new OCP\Template('', '404', 'guest'); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * |
235 | 235 | * Defaults to ``60*60*24*15`` seconds (15 days) |
236 | 236 | */ |
237 | -'remember_login_cookie_lifetime' => 60*60*24*15, |
|
237 | +'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15, |
|
238 | 238 | |
239 | 239 | /** |
240 | 240 | * The lifetime of a session after inactivity. |
@@ -1184,7 +1184,7 @@ discard block |
||
1184 | 1184 | * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1 |
1185 | 1185 | */ |
1186 | 1186 | 'redis.cluster' => [ |
1187 | - 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required |
|
1187 | + 'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required |
|
1188 | 1188 | 'localhost:7000', |
1189 | 1189 | 'localhost:7001', |
1190 | 1190 | ], |
@@ -1249,7 +1249,7 @@ discard block |
||
1249 | 1249 | * |
1250 | 1250 | * Defaults to ``60*60*24`` (1 day) |
1251 | 1251 | */ |
1252 | -'cache_chunk_gc_ttl' => 60*60*24, |
|
1252 | +'cache_chunk_gc_ttl' => 60 * 60 * 24, |
|
1253 | 1253 | |
1254 | 1254 | /** |
1255 | 1255 | * Using Object Store with Nextcloud |
@@ -1682,7 +1682,7 @@ discard block |
||
1682 | 1682 | * Defaults to ``60*60`` seconds (1 hour) or the php |
1683 | 1683 | * max_execution_time, whichever is higher. |
1684 | 1684 | */ |
1685 | -'filelocking.ttl' => 60*60, |
|
1685 | +'filelocking.ttl' => 60 * 60, |
|
1686 | 1686 | |
1687 | 1687 | /** |
1688 | 1688 | * Memory caching backend for file locking |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function generate($name, $parameters = [], $absolute = false) { |
53 | 53 | asort($parameters); |
54 | - $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . sha1(json_encode($parameters)) . (int)$absolute; |
|
54 | + $key = $this->context->getHost().'#'.$this->context->getBaseUrl().$name.sha1(json_encode($parameters)).(int) $absolute; |
|
55 | 55 | $cachedKey = $this->cache->get($key); |
56 | 56 | if ($cachedKey) { |
57 | 57 | return $cachedKey; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $uid = $publicKeyCredentialUserEntity->getId(); |
57 | 57 | $entities = $this->credentialMapper->findAllForUid($uid); |
58 | 58 | |
59 | - return array_map(function (PublicKeyCredentialEntity $entity) { |
|
59 | + return array_map(function(PublicKeyCredentialEntity $entity) { |
|
60 | 60 | return $entity->toPublicKeyCredentialSource(); |
61 | 61 | }, $entities); |
62 | 62 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | case 'database': |
92 | 92 | case 'mysql': |
93 | 93 | case 'sqlite': |
94 | - \OCP\Util::writeLog('core', 'Adding user backend ' . $backend . '.', ILogger::DEBUG); |
|
94 | + \OCP\Util::writeLog('core', 'Adding user backend '.$backend.'.', ILogger::DEBUG); |
|
95 | 95 | self::$_usedBackends[$backend] = new \OC\User\Database(); |
96 | 96 | \OC::$server->getUserManager()->registerBackend(self::$_usedBackends[$backend]); |
97 | 97 | break; |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | \OC::$server->getUserManager()->registerBackend(self::$_usedBackends[$backend]); |
101 | 101 | break; |
102 | 102 | default: |
103 | - \OCP\Util::writeLog('core', 'Adding default user backend ' . $backend . '.', ILogger::DEBUG); |
|
104 | - $className = 'OC_USER_' . strtoupper($backend); |
|
103 | + \OCP\Util::writeLog('core', 'Adding default user backend '.$backend.'.', ILogger::DEBUG); |
|
104 | + $className = 'OC_USER_'.strtoupper($backend); |
|
105 | 105 | self::$_usedBackends[$backend] = new $className(); |
106 | 106 | \OC::$server->getUserManager()->registerBackend(self::$_usedBackends[$backend]); |
107 | 107 | break; |
@@ -145,10 +145,10 @@ discard block |
||
145 | 145 | self::useBackend($backend); |
146 | 146 | self::$_setupedBackends[] = $i; |
147 | 147 | } else { |
148 | - \OCP\Util::writeLog('core', 'User backend ' . $class . ' already initialized.', ILogger::DEBUG); |
|
148 | + \OCP\Util::writeLog('core', 'User backend '.$class.' already initialized.', ILogger::DEBUG); |
|
149 | 149 | } |
150 | 150 | } else { |
151 | - \OCP\Util::writeLog('core', 'User backend ' . $class . ' not found.', ILogger::ERROR); |
|
151 | + \OCP\Util::writeLog('core', 'User backend '.$class.' not found.', ILogger::ERROR); |
|
152 | 152 | } |
153 | 153 | } |
154 | 154 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | } |
271 | 271 | |
272 | 272 | $logoutUrl = $urlGenerator->linkToRoute('core.login.logout'); |
273 | - $logoutUrl .= '?requesttoken=' . urlencode(\OCP\Util::callRegister()); |
|
273 | + $logoutUrl .= '?requesttoken='.urlencode(\OCP\Util::callRegister()); |
|
274 | 274 | |
275 | 275 | return $logoutUrl; |
276 | 276 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | if ($user) { |
363 | 363 | return $user->getHome(); |
364 | 364 | } else { |
365 | - return \OC::$server->getSystemConfig()->getValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $uid; |
|
365 | + return \OC::$server->getSystemConfig()->getValue('datadirectory', OC::$SERVERROOT.'/data').'/'.$uid; |
|
366 | 366 | } |
367 | 367 | } |
368 | 368 |
@@ -77,7 +77,7 @@ |
||
77 | 77 | 'preLoginNameUsedAsUserName', |
78 | 78 | ['uid' => &$uid] |
79 | 79 | ); |
80 | - $this->logger->debug('Got UID: ' . $uid); |
|
80 | + $this->logger->debug('Got UID: '.$uid); |
|
81 | 81 | |
82 | 82 | $publicKeyCredentialRequestOptions = $this->webAuthnManger->startAuthentication($uid, $this->request->getServerHost()); |
83 | 83 | $this->session->set(self::WEBAUTHN_LOGIN, json_encode($publicKeyCredentialRequestOptions)); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | <h2><?php p($l->t('Connect to your account')) ?></h2> |
31 | 31 | <p class="info"> |
32 | 32 | <?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [ |
33 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
33 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
34 | 34 | \OCP\Util::sanitizeHTML($_['instanceName']) |
35 | 35 | ])) ?> |
36 | 36 | </p> |