@@ -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)); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | <h2><?php p($l->t('Account access')) ?></h2> |
32 | 32 | <p class="info"> |
33 | 33 | <?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [ |
34 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
34 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
35 | 35 | \OCP\Util::sanitizeHTML($_['instanceName']) |
36 | 36 | ])) ?> |
37 | 37 | </p> |
@@ -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> |
@@ -31,7 +31,7 @@ |
||
31 | 31 | <h2><?php p($l->t('Account access')) ?></h2> |
32 | 32 | <p class="info"> |
33 | 33 | <?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [ |
34 | - '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>', |
|
34 | + '<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>', |
|
35 | 35 | \OCP\Util::sanitizeHTML($_['instanceName']) |
36 | 36 | ])) ?> |
37 | 37 | </p> |