@@ -20,8 +20,6 @@ |
||
20 | 20 | */ |
21 | 21 | namespace OCA\DAV\Upload; |
22 | 22 | |
23 | -use OCA\DAV\Connector\Sabre\Directory; |
|
24 | -use Sabre\DAV\Exception\Forbidden; |
|
25 | 23 | use Sabre\DAV\IFile; |
26 | 24 | |
27 | 25 | /** |
@@ -432,6 +432,9 @@ |
||
432 | 432 | }, $accounts); |
433 | 433 | } |
434 | 434 | |
435 | + /** |
|
436 | + * @param string $backendClass |
|
437 | + */ |
|
435 | 438 | public function getBackend($backendClass) { |
436 | 439 | if (isset($this->backends[$backendClass])) { |
437 | 440 | return $this->backends[$backendClass]; |
@@ -2870,7 +2870,7 @@ |
||
2870 | 2870 | } |
2871 | 2871 | |
2872 | 2872 | /** |
2873 | - * @param $user |
|
2873 | + * @param string|boolean $user |
|
2874 | 2874 | * @return Group[] |
2875 | 2875 | */ |
2876 | 2876 | private static function getGroupsForUser($user) { |
@@ -296,6 +296,9 @@ |
||
296 | 296 | } |
297 | 297 | } |
298 | 298 | |
299 | + /** |
|
300 | + * @param string $name |
|
301 | + */ |
|
299 | 302 | private function buildReason($name, $errorCode) { |
300 | 303 | if (isset($this->errorMessages[$errorCode])) { |
301 | 304 | $desc = $this->list->getDescription($errorCode, $name); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Translating |
72 | 72 | * @param string $text The text we need a translation for |
73 | - * @param array $parameters default:array() Parameters for sprintf |
|
73 | + * @param string[] $parameters default:array() Parameters for sprintf |
|
74 | 74 | * @return string Translation or the same text |
75 | 75 | * |
76 | 76 | * Returns the translation. If no translation is found, $text will be |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * Returns an associative array with all translations |
173 | 173 | * |
174 | 174 | * Called by String |
175 | - * @return array |
|
175 | + * @return string[] |
|
176 | 176 | */ |
177 | 177 | public function getTranslations() { |
178 | 178 | return $this->translations; |
@@ -311,6 +311,11 @@ |
||
311 | 311 | } |
312 | 312 | } |
313 | 313 | |
314 | + /** |
|
315 | + * @param InputInterface $input |
|
316 | + * @param OutputInterface $output |
|
317 | + * @param boolean $shouldRepairStoragesIndividually |
|
318 | + */ |
|
314 | 319 | protected function processUserChunks($input, $output, $users, $inputPath, $shouldRepairStoragesIndividually, $group = null) { |
315 | 320 | # no messaging level option means: no full printout but statistics |
316 | 321 | # $quiet means no print at all |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * @throws \InvalidArgumentException |
324 | 324 | * @throws LoginException |
325 | 325 | * @throws PasswordLoginForbiddenException |
326 | - * @return boolean |
|
326 | + * @return boolean|null |
|
327 | 327 | */ |
328 | 328 | public function logClientIn($user, $password, IRequest $request) { |
329 | 329 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -366,6 +366,9 @@ discard block |
||
366 | 366 | return $this->config->getSystemValue('token_auth_enforced', false); |
367 | 367 | } |
368 | 368 | |
369 | + /** |
|
370 | + * @param string $username |
|
371 | + */ |
|
369 | 372 | protected function isTwoFactorEnforced($username) { |
370 | 373 | Util::emitHook( |
371 | 374 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -988,6 +991,9 @@ discard block |
||
988 | 991 | } |
989 | 992 | } |
990 | 993 | |
994 | + /** |
|
995 | + * @param IRequest $request |
|
996 | + */ |
|
991 | 997 | public function verifyAuthHeaders($request) { |
992 | 998 | $shallLogout = false; |
993 | 999 | try { |
@@ -1019,7 +1025,7 @@ discard block |
||
1019 | 1025 | } |
1020 | 1026 | |
1021 | 1027 | /** |
1022 | - * @param $includeBuiltIn |
|
1028 | + * @param boolean $includeBuiltIn |
|
1023 | 1029 | * @return \Generator | IAuthModule[] |
1024 | 1030 | * @throws Exception |
1025 | 1031 | */ |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OCP\Authentication\IAuthModule; |
31 | 31 | use OCP\IRequest; |
32 | 32 | use OCP\ISession; |
33 | -use OCP\IUser; |
|
34 | 33 | use OCP\IUserManager; |
35 | 34 | use OCP\Session\Exceptions\SessionNotAvailableException; |
36 | 35 |
@@ -113,6 +113,8 @@ |
||
113 | 113 | * INTERNAL USE ONLY!! This method isn't part of the IManager interface |
114 | 114 | * @internal This should only be used by the RegisterNotifierEventImpl (the real implementation). |
115 | 115 | * Do NOT use this method outside as it might not work as expected. |
116 | + * @param string $id |
|
117 | + * @param string $name |
|
116 | 118 | */ |
117 | 119 | public function registerBuiltNotifier(INotifier $notifier, $id, $name) { |
118 | 120 | if (!isset($this->builtNotifiersHolder[$id]) && !isset($this->notifiersInfo[$id])) { |