@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } else { |
| 91 | 91 | $p = new ProgressBar($output); |
| 92 | 92 | $p->start(); |
| 93 | - $this->userManager->callForSeenUsers(function (IUser $user) use ($p) { |
|
| 93 | + $this->userManager->callForSeenUsers(function(IUser $user) use ($p) { |
|
| 94 | 94 | $p->advance(); |
| 95 | 95 | $this->expireTrashForUser($user); |
| 96 | 96 | }); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | \OC_Util::setupFS($user); |
| 119 | 119 | |
| 120 | 120 | // Check if this user has a trashbin directory |
| 121 | - $view = new \OC\Files\View('/' . $user); |
|
| 121 | + $view = new \OC\Files\View('/'.$user); |
|
| 122 | 122 | if (!$view->is_dir('/files_trashbin/files')) { |
| 123 | 123 | return false; |
| 124 | 124 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $this->userManager->callForSeenUsers(function (IUser $user) { |
|
| 81 | + $this->userManager->callForSeenUsers(function(IUser $user) { |
|
| 82 | 82 | $uid = $user->getUID(); |
| 83 | 83 | if (!$this->setupFS($uid)) { |
| 84 | 84 | return; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | \OC_Util::setupFS($user); |
| 101 | 101 | |
| 102 | 102 | // Check if this user has a trashbin directory |
| 103 | - $view = new \OC\Files\View('/' . $user); |
|
| 103 | + $view = new \OC\Files\View('/'.$user); |
|
| 104 | 104 | if (!$view->is_dir('/files_trashbin/files')) { |
| 105 | 105 | return false; |
| 106 | 106 | } |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $notification |
| 91 | 91 | ->setApp('comments') |
| 92 | 92 | ->setObject('comment', $comment->getId()) |
| 93 | - ->setSubject('mention', [ $comment->getObjectType(), $comment->getObjectId() ]) |
|
| 93 | + ->setSubject('mention', [$comment->getObjectType(), $comment->getObjectId()]) |
|
| 94 | 94 | ->setDateTime($comment->getCreationDateTime()); |
| 95 | 95 | |
| 96 | 96 | return $notification; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * @return string|false |
| 198 | 198 | */ |
| 199 | 199 | public function loginName2UserName($loginName) { |
| 200 | - $id = 'LOGINNAME,' . $loginName; |
|
| 200 | + $id = 'LOGINNAME,'.$loginName; |
|
| 201 | 201 | return $this->handleRequest($id, 'loginName2UserName', [$loginName]); |
| 202 | 202 | } |
| 203 | 203 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * @return string|false with the username |
| 209 | 209 | */ |
| 210 | 210 | public function dn2UserName($dn) { |
| 211 | - $id = 'DN,' . $dn; |
|
| 211 | + $id = 'DN,'.$dn; |
|
| 212 | 212 | return $this->handleRequest($id, 'dn2UserName', [$dn]); |
| 213 | 213 | } |
| 214 | 214 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @return bool |
| 168 | 168 | */ |
| 169 | 169 | public function userHasFiles($uid) { |
| 170 | - return $this->files->file_exists($uid . '/files'); |
|
| 170 | + return $this->files->file_exists($uid.'/files'); |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | if (count($parts) > 1) { |
| 184 | 184 | $owner = $parts[1]; |
| 185 | 185 | if ($this->userManager->userExists($owner) === false) { |
| 186 | - throw new \BadMethodCallException('Unknown user: ' . |
|
| 186 | + throw new \BadMethodCallException('Unknown user: '. |
|
| 187 | 187 | 'method expects path to a user folder relative to the data folder'); |
| 188 | 188 | } |
| 189 | 189 | } |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | // always use the version from the original file, also part files |
| 205 | 205 | // need to have a correct version number if they get moved over to the |
| 206 | 206 | // final location |
| 207 | - $this->version = (int)$this->keyManager->getVersion($this->stripPartFileExtension($path), new View()); |
|
| 207 | + $this->version = (int) $this->keyManager->getVersion($this->stripPartFileExtension($path), new View()); |
|
| 208 | 208 | |
| 209 | 209 | if ( |
| 210 | 210 | $mode === 'w' |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | if ($this->writeCache) { |
| 309 | 309 | |
| 310 | 310 | // Concat writeCache to start of $data |
| 311 | - $data = $this->writeCache . $data; |
|
| 311 | + $data = $this->writeCache.$data; |
|
| 312 | 312 | |
| 313 | 313 | // Clear the write cache, ready for reuse - it has been |
| 314 | 314 | // flushed and its old contents processed |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | try { |
| 405 | 405 | $publicKeys[$user] = $this->keyManager->getPublicKey($user); |
| 406 | 406 | } catch (PublicKeyMissingException $e) { |
| 407 | - $this->logger->warning('Could not encrypt file for ' . $user . ': ' . $e->getMessage()); |
|
| 407 | + $this->logger->warning('Could not encrypt file for '.$user.': '.$e->getMessage()); |
|
| 408 | 408 | } |
| 409 | 409 | } |
| 410 | 410 | } |
@@ -492,8 +492,8 @@ discard block |
||
| 492 | 492 | // error message because in this case it means that the file was |
| 493 | 493 | // shared with the user at a point where the user didn't had a |
| 494 | 494 | // valid private/public key |
| 495 | - $msg = 'Encryption module "' . $this->getDisplayName() . |
|
| 496 | - '" is not able to read ' . $path; |
|
| 495 | + $msg = 'Encryption module "'.$this->getDisplayName(). |
|
| 496 | + '" is not able to read '.$path; |
|
| 497 | 497 | $hint = $this->l->t('Can not read this file, probably this is a shared file. Please ask the file owner to reshare the file with you.'); |
| 498 | 498 | $this->logger->warning($msg); |
| 499 | 499 | throw new DecryptionFailedException($msg, $hint); |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | $realPath = $path; |
| 536 | 536 | $parts = explode('/', $path); |
| 537 | 537 | if ($parts[2] === 'files_versions') { |
| 538 | - $realPath = '/' . $parts[1] . '/files/' . implode('/', array_slice($parts, 3)); |
|
| 538 | + $realPath = '/'.$parts[1].'/files/'.implode('/', array_slice($parts, 3)); |
|
| 539 | 539 | $length = strrpos($realPath, '.'); |
| 540 | 540 | $realPath = substr($realPath, 0, $length); |
| 541 | 541 | } |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | ?> |
| 7 | 7 | |
| 8 | 8 | -- |
| 9 | -<?php p($theme->getName() . ' - ' . $theme->getSlogan()); ?> |
|
| 9 | +<?php p($theme->getName().' - '.$theme->getSlogan()); ?> |
|
| 10 | 10 | <?php print_unescaped("\n".$theme->getBaseUrl()); |
@@ -69,10 +69,10 @@ |
||
| 69 | 69 | return $this->url; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $this->url = $this->request->getServerProtocol() . '://';// E.g. http(s) + :// |
|
| 73 | - $this->url .= $this->request->getServerHost();// E.g. localhost |
|
| 74 | - $this->url .= $this->request->getScriptName();// E.g. /nextcloud/index.php |
|
| 75 | - $this->url .= $this->request->getPathInfo();// E.g. /apps/files_texteditor/ajax/loadfile |
|
| 72 | + $this->url = $this->request->getServerProtocol().'://'; // E.g. http(s) + :// |
|
| 73 | + $this->url .= $this->request->getServerHost(); // E.g. localhost |
|
| 74 | + $this->url .= $this->request->getScriptName(); // E.g. /nextcloud/index.php |
|
| 75 | + $this->url .= $this->request->getPathInfo(); // E.g. /apps/files_texteditor/ajax/loadfile |
|
| 76 | 76 | |
| 77 | 77 | return $this->url; // E.g. https://localhost/nextcloud/index.php/apps/files_texteditor/ajax/loadfile |
| 78 | 78 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $container = $this->getContainer(); |
| 18 | 18 | $server = $container->getServer(); |
| 19 | 19 | |
| 20 | - $container->registerService(NewUserMailHelper::class, function (SimpleContainer $c) use ($server) { |
|
| 20 | + $container->registerService(NewUserMailHelper::class, function(SimpleContainer $c) use ($server) { |
|
| 21 | 21 | return new NewUserMailHelper( |
| 22 | 22 | $server->query(Defaults::class), |
| 23 | 23 | $server->getURLGenerator(), |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | Util::getDefaultEmailAddress('no-reply') |
| 31 | 31 | ); |
| 32 | 32 | }); |
| 33 | - $container->registerService('ProvisioningApiMiddleware', function (SimpleContainer $c) use ($server) { |
|
| 33 | + $container->registerService('ProvisioningApiMiddleware', function(SimpleContainer $c) use ($server) { |
|
| 34 | 34 | $user = $server->getUserManager()->get($c['UserId']); |
| 35 | 35 | $isAdmin = $user !== null ? $server->getGroupManager()->isAdmin($user->getUID()) : false; |
| 36 | 36 | $isSubAdmin = $user !== null ? $server->getGroupManager()->getSubAdmin()->isSubAdmin($user) : false; |