@@ -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; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * @param string $sourcePath source path |
47 | 47 | * @param string $destination destination path |
48 | - * @return bool|void |
|
48 | + * @return null|false |
|
49 | 49 | * @throws BadRequest |
50 | 50 | * @throws \Sabre\DAV\Exception\NotFound |
51 | 51 | */ |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @param string $path source path |
71 | 71 | * @param string $destination destination path |
72 | - * @return bool|void false to stop handling, void to skip this handler |
|
72 | + * @return null|false false to stop handling, void to skip this handler |
|
73 | 73 | */ |
74 | 74 | public function performMove($path, $destination) { |
75 | 75 | if (!$this->server->tree->nodeExists($destination)) { |
@@ -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 |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @param SyncService $syncService |
173 | 173 | * @param UserInterface $backend |
174 | 174 | * @param string $missingAccountsAction |
175 | - * @param array $validActions |
|
175 | + * @param string[] $validActions |
|
176 | 176 | */ |
177 | 177 | private function syncMultipleUsers ( |
178 | 178 | InputInterface $input, |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @param UserInterface $backend |
221 | 221 | * @param string $uid |
222 | 222 | * @param string $missingAccountsAction |
223 | - * @param array $validActions |
|
223 | + * @param string[] $validActions |
|
224 | 224 | */ |
225 | 225 | private function syncSingleUser( |
226 | 226 | InputInterface $input, |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
258 | - * @param array $uids a list of uids to the the action |
|
258 | + * @param string[] $uids a list of uids to the the action |
|
259 | 259 | * @param callable $callbackExists the callback used if the account for the uid exists. The |
260 | 260 | * uid and the specific account will be passed as parameter to the callback in that order |
261 | 261 | * @param callable $callbackMissing the callback used if the account doesn't exists. The uid (not |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @param string[] $unknownUsers |
277 | 277 | * @param InputInterface $input |
278 | 278 | * @param OutputInterface $output |
279 | - * @param $missingAccountsAction |
|
279 | + * @param string $missingAccountsAction |
|
280 | 280 | * @param $validActions |
281 | 281 | */ |
282 | 282 | private function handleUnknownUsers(array $unknownUsers, InputInterface $input, OutputInterface $output, $missingAccountsAction, $validActions) { |
@@ -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])) { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | |
48 | 48 | /** |
49 | - * @param object|string $object an object or classname |
|
49 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
50 | 50 | * @param string $method the method which we want to inspect |
51 | 51 | * @throws \ReflectionException |
52 | 52 | */ |
@@ -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) { |