@@ -60,7 +60,7 @@ |
||
60 | 60 | * The deserialize method is called during xml parsing. |
61 | 61 | * |
62 | 62 | * @param Reader $reader |
63 | - * @return mixed |
|
63 | + * @return ShareTypeList |
|
64 | 64 | */ |
65 | 65 | static function xmlDeserialize(Reader $reader) { |
66 | 66 | $shareTypes = []; |
@@ -35,7 +35,6 @@ |
||
35 | 35 | use OCA\Files\Service\TagService; |
36 | 36 | use OCP\IPreview; |
37 | 37 | use OCP\Share\IManager; |
38 | -use OCP\Files\FileInfo; |
|
39 | 38 | use OCP\Files\Node; |
40 | 39 | use OCP\IUserSession; |
41 | 40 |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | namespace OCA\Files\Service; |
26 | 26 | |
27 | -use OC\Files\FileInfo; |
|
28 | 27 | use OCP\Files\Node; |
29 | 28 | |
30 | 29 | /** |
@@ -866,6 +866,7 @@ discard block |
||
866 | 866 | * * readOnly - boolean |
867 | 867 | * * summary - Optional, a description for the share |
868 | 868 | * |
869 | + * @param integer $addressBookId |
|
869 | 870 | * @return array |
870 | 871 | */ |
871 | 872 | public function getShares($addressBookId) { |
@@ -965,7 +966,7 @@ discard block |
||
965 | 966 | |
966 | 967 | /** |
967 | 968 | * For shared address books the sharee is set in the ACL of the address book |
968 | - * @param $addressBookId |
|
969 | + * @param integer $addressBookId |
|
969 | 970 | * @param $acl |
970 | 971 | * @return array |
971 | 972 | */ |
@@ -973,6 +974,9 @@ discard block |
||
973 | 974 | return $this->sharingBackend->applyShareAcl($addressBookId, $acl); |
974 | 975 | } |
975 | 976 | |
977 | + /** |
|
978 | + * @param boolean $toV2 |
|
979 | + */ |
|
976 | 980 | private function convertPrincipal($principalUri, $toV2) { |
977 | 981 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
978 | 982 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -25,7 +25,6 @@ discard block |
||
25 | 25 | use OCP\IUserManager; |
26 | 26 | use OCP\Share\IManager; |
27 | 27 | use OCP\Share\IProviderFactory; |
28 | -use OC\Share20\Exception\BackendError; |
|
29 | 28 | use OCP\IConfig; |
30 | 29 | use OCP\IL10N; |
31 | 30 | use OCP\ILogger; |
@@ -35,7 +34,6 @@ discard block |
||
35 | 34 | use OCP\IGroupManager; |
36 | 35 | use OCP\Files\File; |
37 | 36 | use OCP\Files\Folder; |
38 | - |
|
39 | 37 | use OCP\Share\Exceptions\ShareNotFound; |
40 | 38 | use OCP\Share\Exceptions\GenericShareException; |
41 | 39 |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use OCP\Share\Exceptions\ShareNotFound; |
29 | 29 | use OC\Share20\Exception\BackendError; |
30 | 30 | use OCP\DB\QueryBuilder\IQueryBuilder; |
31 | -use OCP\Files\NotFoundException; |
|
32 | 31 | use OCP\IGroup; |
33 | 32 | use OCP\IGroupManager; |
34 | 33 | use OCP\IUserManager; |
@@ -86,8 +86,6 @@ |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * @codeCoverageIgnore |
89 | - * @param \Exception $ex |
|
90 | - * @param int $httpCode |
|
91 | 89 | * @return bool|string |
92 | 90 | */ |
93 | 91 | public function generateBody(\Exception $exception) { |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OC\Files\Filesystem; |
31 | 31 | use OC\Files\View; |
32 | 32 | use OCP\Encryption\IEncryptionModule; |
33 | -use OCP\Files\Storage; |
|
34 | 33 | use OCP\IConfig; |
35 | 34 | |
36 | 35 | class Util { |
@@ -308,6 +308,7 @@ discard block |
||
308 | 308 | * @param array $params the parameters of the sql query |
309 | 309 | * @param int $limit the maximum number of rows |
310 | 310 | * @param int $offset from which row we want to start |
311 | + * @param string $msg |
|
311 | 312 | * @return string formatted error message string |
312 | 313 | * @since 9.1.0 |
313 | 314 | */ |
@@ -360,7 +361,7 @@ discard block |
||
360 | 361 | * Returns an db result and throws exceptions when there are more or less |
361 | 362 | * results |
362 | 363 | * @param string $sql the sql query |
363 | - * @param array $params the parameters of the sql query |
|
364 | + * @param string[] $params the parameters of the sql query |
|
364 | 365 | * @param int $limit the maximum number of rows |
365 | 366 | * @param int $offset from which row we want to start |
366 | 367 | * @throws DoesNotExistException if the item does not exist |