@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | $query = $this->connection->getQueryBuilder(); |
| 70 | 70 | $query->update('share') |
| 71 | - ->set('share_type', $query->createNamedParameter(Share::SHARE_TYPE_GUEST)) |
|
| 71 | + ->set('share_type', $query->createNamedParameter(Share::SHARE_TYPE_GUEST)) |
|
| 72 | 72 | ->where($query->expr()->eq('share_type', $query->createNamedParameter(Share::SHARE_TYPE_EMAIL))); |
| 73 | 73 | $query->execute(); |
| 74 | 74 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * ubos-raspberry-pi.local and ubos-raspberry-pi-2.local |
| 68 | 68 | */ |
| 69 | 69 | 'trusted_domains' => |
| 70 | - array ( |
|
| 70 | + array( |
|
| 71 | 71 | 'demo.example.org', |
| 72 | 72 | 'otherdomain.example.org', |
| 73 | 73 | ), |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * |
| 193 | 193 | * Defaults to ``60*60*24*15`` seconds (15 days) |
| 194 | 194 | */ |
| 195 | -'remember_login_cookie_lifetime' => 60*60*24*15, |
|
| 195 | +'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15, |
|
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | 198 | * The lifetime of a session after inactivity. |
@@ -1074,7 +1074,7 @@ discard block |
||
| 1074 | 1074 | * See https://redis.io/topics/cluster-spec for details about the Redis cluster |
| 1075 | 1075 | */ |
| 1076 | 1076 | 'redis.cluster' => [ |
| 1077 | - 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required |
|
| 1077 | + 'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required |
|
| 1078 | 1078 | 'localhost:7000', |
| 1079 | 1079 | 'localhost:7001' |
| 1080 | 1080 | ], |
@@ -1138,7 +1138,7 @@ discard block |
||
| 1138 | 1138 | * |
| 1139 | 1139 | * Defaults to ``60*60*24`` (1 day) |
| 1140 | 1140 | */ |
| 1141 | -'cache_chunk_gc_ttl' => 60*60*24, |
|
| 1141 | +'cache_chunk_gc_ttl' => 60 * 60 * 24, |
|
| 1142 | 1142 | |
| 1143 | 1143 | /** |
| 1144 | 1144 | * Using Object Store with Nextcloud |
@@ -1462,7 +1462,7 @@ discard block |
||
| 1462 | 1462 | * Defaults to ``60*60`` seconds (1 hour) or the php |
| 1463 | 1463 | * max_execution_time, whichever is higher. |
| 1464 | 1464 | */ |
| 1465 | -'filelocking.ttl' => 60*60, |
|
| 1465 | +'filelocking.ttl' => 60 * 60, |
|
| 1466 | 1466 | |
| 1467 | 1467 | /** |
| 1468 | 1468 | * Memory caching backend for file locking |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | |
| 15 | 15 | <?php if ($_['tooBig']) { ?> |
| 16 | 16 | <div class="warning updateAnyways"> |
| 17 | - <?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.' )); ?> |
|
| 18 | - <a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk' )); ?></a> |
|
| 17 | + <?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.')); ?> |
|
| 18 | + <a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk')); ?></a> |
|
| 19 | 19 | </div> |
| 20 | 20 | <?php } ?> |
| 21 | 21 | |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | if (isset($this->namespaces[$namespace])) { |
| 86 | 86 | if (!isset($this->hasNoAppContainer[$namespace])) { |
| 87 | - $applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application'; |
|
| 87 | + $applicationClassName = 'OCA\\'.$sensitiveNamespace.'\\AppInfo\\Application'; |
|
| 88 | 88 | if (class_exists($applicationClassName)) { |
| 89 | 89 | new $applicationClassName(); |
| 90 | 90 | if (isset($this->appContainers[$namespace])) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $result = $qb->execute(); |
| 50 | 50 | $row = $result->fetch(); |
| 51 | 51 | $result->closeCursor(); |
| 52 | - if($row === false) { |
|
| 52 | + if ($row === false) { |
|
| 53 | 53 | throw new ClientNotFoundException(); |
| 54 | 54 | } |
| 55 | 55 | return Client::fromRow($row); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $result = $qb->execute(); |
| 70 | 70 | $row = $result->fetch(); |
| 71 | 71 | $result->closeCursor(); |
| 72 | - if($row === false) { |
|
| 72 | + if ($row === false) { |
|
| 73 | 73 | throw new ClientNotFoundException(); |
| 74 | 74 | } |
| 75 | 75 | return Client::fromRow($row); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $result = $qb->execute(); |
| 50 | 50 | $row = $result->fetch(); |
| 51 | 51 | $result->closeCursor(); |
| 52 | - if($row === false) { |
|
| 52 | + if ($row === false) { |
|
| 53 | 53 | throw new AccessTokenNotFoundException(); |
| 54 | 54 | } |
| 55 | 55 | return AccessToken::fromRow($row); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | private function setupUserFs($userId) { |
| 56 | 56 | \OC_Util::setupFS($userId); |
| 57 | 57 | $this->session->close(); |
| 58 | - return $this->principalPrefix . $userId; |
|
| 58 | + return $this->principalPrefix.$userId; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | public function validateBearerToken($bearerToken) { |
| 65 | 65 | \OC_Util::setupFS(); |
| 66 | 66 | |
| 67 | - if(!$this->userSession->isLoggedIn()) { |
|
| 67 | + if (!$this->userSession->isLoggedIn()) { |
|
| 68 | 68 | $this->userSession->tryTokenLogin($this->request); |
| 69 | 69 | } |
| 70 | - if($this->userSession->isLoggedIn()) { |
|
| 70 | + if ($this->userSession->isLoggedIn()) { |
|
| 71 | 71 | return $this->setupUserFs($this->userSession->getUser()->getUID()); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -71,26 +71,26 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | $app = substr($script, 0, strpos($script, '/')); |
| 74 | - $script = substr($script, strpos($script, '/')+1); |
|
| 74 | + $script = substr($script, strpos($script, '/') + 1); |
|
| 75 | 75 | $app_path = \OC_App::getAppPath($app); |
| 76 | 76 | $app_url = \OC_App::getAppWebPath($app); |
| 77 | 77 | |
| 78 | 78 | // missing translations files fill be ignored |
| 79 | 79 | if (strpos($script, 'l10n/') === 0) { |
| 80 | - $this->appendIfExist($app_path, $script . '.js', $app_url); |
|
| 80 | + $this->appendIfExist($app_path, $script.'.js', $app_url); |
|
| 81 | 81 | return; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | if ($app_path === false && $app_url === false) { |
| 85 | 85 | $this->logger->error('Could not find resource {resource} to load', [ |
| 86 | - 'resource' => $app . '/' . $script . '.js', |
|
| 86 | + 'resource' => $app.'/'.$script.'.js', |
|
| 87 | 87 | 'app' => 'jsresourceloader', |
| 88 | 88 | ]); |
| 89 | 89 | return; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | if (!$this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) { |
| 93 | - $this->append($app_path, $script . '.js', $app_url); |
|
| 93 | + $this->append($app_path, $script.'.js', $app_url); |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | $isMasterKeyEnabled = $this->util->isMasterKeyEnabled(); |
| 69 | 69 | |
| 70 | - if(!$isMasterKeyEnabled) { |
|
| 70 | + if (!$isMasterKeyEnabled) { |
|
| 71 | 71 | $output->writeln('Master key already disabled'); |
| 72 | 72 | } else { |
| 73 | 73 | $question = new ConfirmationQuestion( |