@@ -67,6 +67,9 @@ |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | + /** |
|
71 | + * @param string|boolean $username |
|
72 | + */ |
|
70 | 73 | private static function sendNotificationMail($username) { |
71 | 74 | $userObject = \OC::$server->getUserManager()->get($username); |
72 | 75 | $email = $userObject->getEMailAddress(); |
@@ -245,7 +245,7 @@ |
||
245 | 245 | } |
246 | 246 | |
247 | 247 | /** |
248 | - * @return array|null |
|
248 | + * @return string |
|
249 | 249 | */ |
250 | 250 | public function getLocalSystemAddressBook() { |
251 | 251 | if ($this->localSystemAddressBook === null) { |
@@ -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 | /** |
@@ -138,6 +138,10 @@ |
||
138 | 138 | ); |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param IShare[] $shares |
|
143 | + * @param string $fileId |
|
144 | + */ |
|
141 | 145 | private function filterSharesByFileId($shares, $fileId) { |
142 | 146 | return \array_filter($shares, function (IShare $share) use ($fileId) { |
143 | 147 | return \strval($share->getNodeId()) === \strval($fileId); |
@@ -310,7 +310,7 @@ |
||
310 | 310 | * @param string[] $removedUsers |
311 | 311 | * @param InputInterface $input |
312 | 312 | * @param OutputInterface $output |
313 | - * @param $missingAccountsAction |
|
313 | + * @param string $missingAccountsAction |
|
314 | 314 | */ |
315 | 315 | private function handleRemovedUsers(array $removedUsers, InputInterface $input, OutputInterface $output, $missingAccountsAction) { |
316 | 316 | if (empty($removedUsers)) { |
@@ -26,7 +26,6 @@ |
||
26 | 26 | namespace OC\Files\External\Service; |
27 | 27 | |
28 | 28 | use OC\Files\Filesystem; |
29 | - |
|
30 | 29 | use OCP\Files\External\IStorageConfig; |
31 | 30 | use OCP\Files\External\IStoragesBackendService; |
32 | 31 | use OCP\Files\External\Service\IGlobalStoragesService; |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | /** |
512 | 512 | * @param \OCP\Files\File|\OCP\Files\Folder $node |
513 | 513 | * @param boolean $includeTags include tags in response |
514 | - * @param int|null $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
514 | + * @param integer $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
515 | 515 | * @return \OC\OCS\Result |
516 | 516 | */ |
517 | 517 | private function getSharedWithMe($node = null, $includeTags, $stateFilter = 0) { |
@@ -870,7 +870,7 @@ discard block |
||
870 | 870 | } |
871 | 871 | |
872 | 872 | /** |
873 | - * @param $id |
|
873 | + * @param integer $id |
|
874 | 874 | * @param $state |
875 | 875 | * @return \OC\OCS\Result |
876 | 876 | */ |
@@ -1041,6 +1041,7 @@ discard block |
||
1041 | 1041 | * not support this we need to check all backends. |
1042 | 1042 | * |
1043 | 1043 | * @param string $id |
1044 | + * @param string $recipient |
|
1044 | 1045 | * @return \OCP\Share\IShare |
1045 | 1046 | * @throws ShareNotFound |
1046 | 1047 | */ |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * @param RequestInterface $request |
61 | 61 | * @param ResponseInterface $response |
62 | - * @return bool|void |
|
62 | + * @return null|false |
|
63 | 63 | * @throws \Sabre\DAV\Exception\BadRequest |
64 | 64 | * @throws \Sabre\DAV\Exception\Conflict |
65 | 65 | * @throws \Sabre\DAV\Exception\NotFound |
@@ -704,7 +704,7 @@ |
||
704 | 704 | } |
705 | 705 | |
706 | 706 | /** |
707 | - * @param $internalPath |
|
707 | + * @param string $internalPath |
|
708 | 708 | * @return array |
709 | 709 | */ |
710 | 710 | protected function convertInternalPathToGlobalPath($internalPath) { |
@@ -51,7 +51,6 @@ |
||
51 | 51 | use OCP\Files\InvalidPathException; |
52 | 52 | use OCP\Files\ReservedWordException; |
53 | 53 | use OCP\Files\Storage\ILockingStorage; |
54 | -use OCP\Files\Storage\IStorage; |
|
55 | 54 | use OCP\Files\Storage\IVersionedStorage; |
56 | 55 | use OCP\Lock\ILockingProvider; |
57 | 56 |
@@ -255,7 +255,7 @@ |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
258 | - * @param $user |
|
258 | + * @param \OCP\IUser|null $user |
|
259 | 259 | * @throws ServiceUnavailable |
260 | 260 | */ |
261 | 261 | private function checkAccountModule($user) { |