@@ -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 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | if ($useLoginPassword) { |
| 100 | 100 | $question = new Question('Please enter the user\'s login password: '); |
| 101 | 101 | } elseif ($this->util->isRecoveryEnabledForUser($user) === false) { |
| 102 | - $output->writeln('No recovery key available for user ' . $user); |
|
| 102 | + $output->writeln('No recovery key available for user '.$user); |
|
| 103 | 103 | return false; |
| 104 | 104 | } else { |
| 105 | 105 | $user = $recoveryKeyId; |
@@ -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 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } else { |
| 90 | 90 | $p = new ProgressBar($output); |
| 91 | 91 | $p->start(); |
| 92 | - $this->userManager->callForSeenUsers(function (IUser $user) use ($p) { |
|
| 92 | + $this->userManager->callForSeenUsers(function(IUser $user) use ($p) { |
|
| 93 | 93 | $p->advance(); |
| 94 | 94 | $this->expireVersionsForUser($user); |
| 95 | 95 | }); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | \OC_Util::setupFS($user); |
| 117 | 117 | |
| 118 | 118 | // Check if this user has a version directory |
| 119 | - $view = new \OC\Files\View('/' . $user); |
|
| 119 | + $view = new \OC\Files\View('/'.$user); |
|
| 120 | 120 | if (!$view->is_dir('/files_versions')) { |
| 121 | 121 | return false; |
| 122 | 122 | } |
@@ -105,8 +105,8 @@ |
||
| 105 | 105 | protected function deleteVersions($user) { |
| 106 | 106 | \OC_Util::tearDownFS(); |
| 107 | 107 | \OC_Util::setupFS($user); |
| 108 | - if ($this->rootFolder->nodeExists('/' . $user . '/files_versions')) { |
|
| 109 | - $this->rootFolder->get('/' . $user . '/files_versions')->delete(); |
|
| 108 | + if ($this->rootFolder->nodeExists('/'.$user.'/files_versions')) { |
|
| 109 | + $this->rootFolder->get('/'.$user.'/files_versions')->delete(); |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | return; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - $this->userManager->callForSeenUsers(function (IUser $user) { |
|
| 69 | + $this->userManager->callForSeenUsers(function(IUser $user) { |
|
| 70 | 70 | $uid = $user->getUID(); |
| 71 | 71 | if (!$this->setupFS($uid)) { |
| 72 | 72 | return; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | \OC_Util::setupFS($user); |
| 86 | 86 | |
| 87 | 87 | // Check if this user has a versions directory |
| 88 | - $view = new \OC\Files\View('/' . $user); |
|
| 88 | + $view = new \OC\Files\View('/'.$user); |
|
| 89 | 89 | if (!$view->is_dir('/files_versions')) { |
| 90 | 90 | return false; |
| 91 | 91 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | $this->checker->writeCoreSignature($x509, $rsa, $path); |
| 100 | 100 | $output->writeln('Successfully signed "core"'); |
| 101 | 101 | } catch (\Exception $e) { |
| 102 | - $output->writeln('Error: ' . $e->getMessage()); |
|
| 102 | + $output->writeln('Error: '.$e->getMessage()); |
|
| 103 | 103 | return 1; |
| 104 | 104 | } |
| 105 | 105 | return 0; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function completeArgumentValues($argumentName, CompletionContext $context) { |
| 53 | 53 | if ($argumentName === 'uid') { |
| 54 | - return array_map(function (IUser $user) { |
|
| 54 | + return array_map(function(IUser $user) { |
|
| 55 | 55 | return $user->getUID(); |
| 56 | 56 | }, $this->userManager->search($context->getCurrentWord(), 100)); |
| 57 | 57 | } |