@@ -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; |
@@ -278,7 +278,7 @@ |
||
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | - * @param string[] $subTree |
|
281 | + * @param string[] $subTrees |
|
282 | 282 | * @return bool |
283 | 283 | */ |
284 | 284 | private function isRequestForSubtree(array $subTrees) { |
@@ -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 |
@@ -22,7 +22,6 @@ |
||
22 | 22 | namespace OC\Repair; |
23 | 23 | |
24 | 24 | use OCP\DB\QueryBuilder\IQueryBuilder; |
25 | -use OCP\IConfig; |
|
26 | 25 | use OCP\IDBConnection; |
27 | 26 | use OCP\Migration\IOutput; |
28 | 27 | use OCP\Migration\IRepairStep; |
@@ -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 | */ |
@@ -43,7 +43,6 @@ |
||
43 | 43 | use OCP\IUserBackend; |
44 | 44 | use OCP\IUserSession; |
45 | 45 | use OCP\User\IChangePasswordBackend; |
46 | -use OCP\UserInterface; |
|
47 | 46 | use Symfony\Component\EventDispatcher\EventDispatcher; |
48 | 47 | use Symfony\Component\EventDispatcher\GenericEvent; |
49 | 48 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param Account $account |
84 | 84 | * @param AccountMapper $mapper |
85 | - * @param null $emitter |
|
85 | + * @param Manager $emitter |
|
86 | 86 | * @param IConfig|null $config |
87 | 87 | * @param null $urlGenerator |
88 | 88 | * @param EventDispatcher|null $eventDispatcher |
@@ -473,6 +473,10 @@ discard block |
||
473 | 473 | return $url; |
474 | 474 | } |
475 | 475 | |
476 | + /** |
|
477 | + * @param string $feature |
|
478 | + * @param string $value |
|
479 | + */ |
|
476 | 480 | public function triggerChange($feature, $value = null) { |
477 | 481 | if ($this->emitter && \in_array($feature, $this->account->getUpdatedFields())) { |
478 | 482 | $this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); |
@@ -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])) { |
@@ -134,7 +134,6 @@ |
||
134 | 134 | * @NoAdminRequired |
135 | 135 | * @NoSubadminRequired |
136 | 136 | * |
137 | - * @param string $domain Domain to remove |
|
138 | 137 | * @return RedirectResponse Redirection to the settings page. |
139 | 138 | */ |
140 | 139 | public function removeDomain($id) { |