@@ -32,18 +32,21 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @param string $message |
| 34 | 34 | * @since 9.1.0 |
| 35 | + * @return void |
|
| 35 | 36 | */ |
| 36 | 37 | public function info($message); |
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * @param string $message |
| 40 | 41 | * @since 9.1.0 |
| 42 | + * @return void |
|
| 41 | 43 | */ |
| 42 | 44 | public function warning($message); |
| 43 | 45 | |
| 44 | 46 | /** |
| 45 | 47 | * @param int $max |
| 46 | 48 | * @since 9.1.0 |
| 49 | + * @return void |
|
| 47 | 50 | */ |
| 48 | 51 | public function startProgress($max = 0); |
| 49 | 52 | |
@@ -51,12 +54,13 @@ discard block |
||
| 51 | 54 | * @param int $step |
| 52 | 55 | * @param string $description |
| 53 | 56 | * @since 9.1.0 |
| 57 | + * @return void |
|
| 54 | 58 | */ |
| 55 | 59 | public function advance($step = 1, $description = ''); |
| 56 | 60 | |
| 57 | 61 | /** |
| 58 | - * @param int $max |
|
| 59 | 62 | * @since 9.1.0 |
| 63 | + * @return void |
|
| 60 | 64 | */ |
| 61 | 65 | public function finishProgress(); |
| 62 | 66 | } |
@@ -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 | */ |
@@ -39,7 +39,6 @@ |
||
| 39 | 39 | use OCA\DAV\Connector\Sabre\Exception\Forbidden; |
| 40 | 40 | use OCA\DAV\Connector\Sabre\Exception\InvalidPath; |
| 41 | 41 | use OCP\Files\ForbiddenException; |
| 42 | -use OCP\Files\Storage\IPersistentLockingStorage; |
|
| 43 | 42 | use OCP\Share\Exceptions\ShareNotFound; |
| 44 | 43 | use OCP\Share\IManager; |
| 45 | 44 | |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCP\Lock\LockedException; |
| 31 | 31 | use Sabre\DAV\Exception\Forbidden; |
| 32 | 32 | use Sabre\DAV\Exception\NotFound; |
| 33 | -use Sabre\DAV\Exception\NotImplemented; |
|
| 34 | 33 | use Sabre\DAV\Locks\LockInfo; |
| 35 | 34 | use Sabre\DAV\ServerPlugin; |
| 36 | 35 | use Sabre\HTTP\RequestInterface; |