@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * |
325 | 325 | * @param string $remoteDomain |
326 | 326 | * @param string $token |
327 | - * @param $remoteId id of the share |
|
327 | + * @param integer $remoteId id of the share |
|
328 | 328 | * @param string $feedback |
329 | 329 | * @return bool |
330 | 330 | */ |
@@ -421,6 +421,9 @@ discard block |
||
421 | 421 | return $result; |
422 | 422 | } |
423 | 423 | |
424 | + /** |
|
425 | + * @param string $mountPoint |
|
426 | + */ |
|
424 | 427 | public function removeShare($mountPoint) { |
425 | 428 | |
426 | 429 | $mountPointObj = $this->mountManager->find($mountPoint); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @throws \Sabre\DAV\Exception\Forbidden |
50 | - * @return bool |
|
50 | + * @return false|null |
|
51 | 51 | */ |
52 | 52 | public function handleAnonymousOptions(RequestInterface $request, ResponseInterface $response) { |
53 | 53 | if ($request->getMethod() === 'OPTIONS' && $request->getPath() === '') { |
@@ -238,7 +238,6 @@ discard block |
||
238 | 238 | /** |
239 | 239 | * Get all available apps in a category |
240 | 240 | * |
241 | - * @param string $category |
|
242 | 241 | * @return JSONResponse |
243 | 242 | * @throws \Exception |
244 | 243 | */ |
@@ -415,7 +414,7 @@ discard block |
||
415 | 414 | * apps will be enabled for specific groups only if $groups is defined |
416 | 415 | * |
417 | 416 | * @PasswordConfirmationRequired |
418 | - * @param array $appIds |
|
417 | + * @param string[] $appIds |
|
419 | 418 | * @param array $groups |
420 | 419 | * @return JSONResponse |
421 | 420 | */ |
@@ -479,7 +478,7 @@ discard block |
||
479 | 478 | /** |
480 | 479 | * @PasswordConfirmationRequired |
481 | 480 | * |
482 | - * @param array $appIds |
|
481 | + * @param string[] $appIds |
|
483 | 482 | * @return JSONResponse |
484 | 483 | */ |
485 | 484 | public function disableApps(array $appIds): JSONResponse { |
@@ -450,7 +450,7 @@ |
||
450 | 450 | /** |
451 | 451 | * translate Nextcloud permissions to OCM Permissions |
452 | 452 | * |
453 | - * @param $ncPermissions |
|
453 | + * @param integer $ncPermissions |
|
454 | 454 | * @return array |
455 | 455 | */ |
456 | 456 | protected function ncPermissions2ocmPermissions($ncPermissions) { |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | * Share a path |
577 | 577 | * |
578 | 578 | * @param \OCP\Share\IShare $share |
579 | - * @return Share The share object |
|
579 | + * @return IShare The share object |
|
580 | 580 | * @throws \Exception |
581 | 581 | * |
582 | 582 | * TODO: handle link share permissions or check them |
@@ -1169,7 +1169,7 @@ discard block |
||
1169 | 1169 | * Get the share by token possible with password |
1170 | 1170 | * |
1171 | 1171 | * @param string $token |
1172 | - * @return Share |
|
1172 | + * @return IShare |
|
1173 | 1173 | * |
1174 | 1174 | * @throws ShareNotFound |
1175 | 1175 | */ |
@@ -1231,6 +1231,9 @@ discard block |
||
1231 | 1231 | return $share; |
1232 | 1232 | } |
1233 | 1233 | |
1234 | + /** |
|
1235 | + * @param IShare $share |
|
1236 | + */ |
|
1234 | 1237 | protected function checkExpireDate($share) { |
1235 | 1238 | if ($share->getExpirationDate() !== null && |
1236 | 1239 | $share->getExpirationDate() <= new \DateTime()) { |
@@ -74,7 +74,6 @@ |
||
74 | 74 | * |
75 | 75 | * Get user accessibility config |
76 | 76 | * |
77 | - * @param string $key theme or font |
|
78 | 77 | * @return DataResponse |
79 | 78 | */ |
80 | 79 | public function getConfig(): DataResponse { |
@@ -407,7 +407,7 @@ |
||
407 | 407 | /** |
408 | 408 | * calculate default permissions in case no permissions are provided |
409 | 409 | * |
410 | - * @param $path |
|
410 | + * @param string $path |
|
411 | 411 | * @return int |
412 | 412 | */ |
413 | 413 | protected function getDefaultPermissions($path) { |
@@ -450,7 +450,7 @@ |
||
450 | 450 | /** |
451 | 451 | * translate Nextcloud permissions to OCM Permissions |
452 | 452 | * |
453 | - * @param $ncPermissions |
|
453 | + * @param integer $ncPermissions |
|
454 | 454 | * @return array |
455 | 455 | */ |
456 | 456 | protected function ncPermissions2ocmPermissions($ncPermissions) { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * share received from another server |
143 | 143 | * |
144 | 144 | * @param ICloudFederationShare $share |
145 | - * @return string provider specific unique ID of the share |
|
145 | + * @return integer provider specific unique ID of the share |
|
146 | 146 | * |
147 | 147 | * @throws ProviderCouldNotAddShareException |
148 | 148 | * @throws \OCP\AppFramework\QueryException |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | /** |
767 | 767 | * get the supported share types, e.g. "user", "group", etc. |
768 | 768 | * |
769 | - * @return array |
|
769 | + * @return string[] |
|
770 | 770 | * |
771 | 771 | * @since 14.0.0 |
772 | 772 | */ |