@@ -247,8 +247,7 @@ |
||
| 247 | 247 | return new JSONResponse($e->getReturnMessage(), Http::STATUS_BAD_REQUEST); |
| 248 | 248 | } catch (AuthenticationFailedException $e) { |
| 249 | 249 | return new JSONResponse(["message" => "RESOURCE_NOT_FOUND"], Http::STATUS_FORBIDDEN); |
| 250 | - } |
|
| 251 | - catch (\Exception $e) { |
|
| 250 | + } catch (\Exception $e) { |
|
| 252 | 251 | return new JSONResponse( |
| 253 | 252 | ['message' => 'Internal error at ' . $this->urlGenerator->getBaseUrl()], |
| 254 | 253 | Http::STATUS_BAD_REQUEST |
@@ -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); |
@@ -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) { |
@@ -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 | */ |