@@ -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 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $result = []; |
45 | 45 | $timestamp = null; |
46 | 46 | |
47 | - $view = new \OC\Files\View('/' . $user . '/files_trashbin/files'); |
|
47 | + $view = new \OC\Files\View('/'.$user.'/files_trashbin/files'); |
|
48 | 48 | |
49 | 49 | if (ltrim($dir, '/') !== '' && !$view->is_dir($dir)) { |
50 | 50 | throw new \Exception('Directory does not exists'); |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | ]; |
92 | 92 | if ($originalPath) { |
93 | 93 | if ($originalPath !== '.') { |
94 | - $i['extraData'] = $originalPath . '/' . $originalName; |
|
94 | + $i['extraData'] = $originalPath.'/'.$originalName; |
|
95 | 95 | } else { |
96 | 96 | $i['extraData'] = $originalName; |
97 | 97 | } |
98 | 98 | } |
99 | - $result[] = new FileInfo($absoluteDir . '/' . $i['name'], $storage, $internalPath . '/' . $i['name'], $i, $mount); |
|
99 | + $result[] = new FileInfo($absoluteDir.'/'.$i['name'], $storage, $internalPath.'/'.$i['name'], $i, $mount); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | if ($sortAttribute !== '') { |
@@ -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; |
@@ -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 | } |
@@ -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; |
@@ -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 | } |
@@ -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 | } |