@@ -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])) { |
@@ -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) { |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | /** |
538 | 538 | * @param \OCP\Files\File|\OCP\Files\Folder $node |
539 | 539 | * @param boolean $includeTags include tags in response |
540 | - * @param int|null $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
540 | + * @param integer $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
541 | 541 | * @return \OC\OCS\Result |
542 | 542 | */ |
543 | 543 | private function getSharedWithMe($node = null, $includeTags, $stateFilter = 0) { |
@@ -887,6 +887,9 @@ discard block |
||
887 | 887 | return $this->updateShareState($id, \OCP\Share::STATE_REJECTED); |
888 | 888 | } |
889 | 889 | |
890 | + /** |
|
891 | + * @param integer $id |
|
892 | + */ |
|
890 | 893 | private function updateShareState($id, $state) { |
891 | 894 | if (!$this->shareManager->shareApiEnabled()) { |
892 | 895 | return new \OC\OCS\Result(null, 404, $this->l->t('Share API is disabled')); |
@@ -992,6 +995,7 @@ discard block |
||
992 | 995 | * not support this we need to check all backends. |
993 | 996 | * |
994 | 997 | * @param string $id |
998 | + * @param string $recipient |
|
995 | 999 | * @return \OCP\Share\IShare |
996 | 1000 | * @throws ShareNotFound |
997 | 1001 | */ |
@@ -109,8 +109,8 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param $controller |
|
113 | - * @param $methodName |
|
112 | + * @param Controller $controller |
|
113 | + * @param string $methodName |
|
114 | 114 | * @throws TwoFactorAuthRequiredException |
115 | 115 | * @throws UserAlreadyLoggedInException |
116 | 116 | */ |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * @param string $userId |
275 | 275 | * @param string $domain |
276 | 276 | * @param \OCP\IConfig $config |
277 | - * @param array $headers |
|
277 | + * @param string[] $headers |
|
278 | 278 | * |
279 | 279 | * Format of $headers: |
280 | 280 | * Array [ |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | * This function adds the CORS headers for all domains |
319 | 319 | * |
320 | 320 | * @param Sabre\HTTP\ResponseInterface $response |
321 | - * @param Array $headers |
|
321 | + * @param string[] $headers |
|
322 | 322 | * |
323 | 323 | * Format of $headers: |
324 | 324 | * Array [ |
@@ -33,7 +33,6 @@ |
||
33 | 33 | use OCP\Share\IShare; |
34 | 34 | use Symfony\Component\EventDispatcher\GenericEvent; |
35 | 35 | use OCA\Files_Sharing\Service\NotificationPublisher; |
36 | -use OCP\Share\Exceptions\ShareNotFound; |
|
37 | 36 | |
38 | 37 | class Hooks { |
39 | 38 |
@@ -139,6 +139,10 @@ |
||
139 | 139 | ); |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param IShare[] $shares |
|
144 | + * @param string $fileId |
|
145 | + */ |
|
142 | 146 | private function filterSharesByFileId($shares, $fileId) { |
143 | 147 | return \array_filter($shares, function(IShare $share) use ($fileId) { |
144 | 148 | return \strval($share->getNodeId()) === \strval($fileId); |