@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCA\FederatedFileSharing\AddressHandler; |
| 33 | 33 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 34 | 34 | use OCA\FederatedFileSharing\Notifications; |
| 35 | -use OCA\FederatedFileSharing\OCM\CloudFederationProvider; |
|
| 36 | 35 | use OCA\FederatedFileSharing\TokenHandler; |
| 37 | 36 | use OCA\ShareByMail\Settings\SettingsManager; |
| 38 | 37 | use OCA\ShareByMail\ShareByMailProvider; |
@@ -106,7 +106,6 @@ |
||
| 106 | 106 | * @param string $ownerDisplayName display name of the user who shared the item |
| 107 | 107 | * @param string $sharedBy provider specific UID of the user who shared the resource |
| 108 | 108 | * @param string $sharedByDisplayName display name of the user who shared the resource |
| 109 | - * @param string $sharedSecret use to authenticate accross servers |
|
| 110 | 109 | * @param array $protocol (e,.g. ['name' => 'webdav', 'options' => ['username' => 'john', 'permissions' => 31]]) |
| 111 | 110 | * @param string $shareType ('group' or 'user' share) |
| 112 | 111 | * @param $resourceType ('file', 'calendar',...) |
@@ -324,9 +324,9 @@ 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 | - * @return mixed |
|
| 329 | + * @return boolean|null |
|
| 330 | 330 | */ |
| 331 | 331 | protected function tryOCMEndPoint($remoteDomain, $token, $remoteId, $feedback) { |
| 332 | 332 | switch ($feedback) { |
@@ -406,6 +406,9 @@ discard block |
||
| 406 | 406 | return $result; |
| 407 | 407 | } |
| 408 | 408 | |
| 409 | + /** |
|
| 410 | + * @param string $mountPoint |
|
| 411 | + */ |
|
| 409 | 412 | public function removeShare($mountPoint) { |
| 410 | 413 | |
| 411 | 414 | $mountPointObj = $this->mountManager->find($mountPoint); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * share received from another server |
| 123 | 123 | * |
| 124 | 124 | * @param ICloudFederationShare $share |
| 125 | - * @return string provider specific unique ID of the share |
|
| 125 | + * @return integer provider specific unique ID of the share |
|
| 126 | 126 | * |
| 127 | 127 | * @throws ProviderCouldNotAddShareException |
| 128 | 128 | * @throws \OCP\AppFramework\QueryException |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | /** |
| 268 | - * @param $id |
|
| 268 | + * @param string $id |
|
| 269 | 269 | * @param $notification |
| 270 | 270 | * @return bool |
| 271 | 271 | * @throws ActionNotSupportedException |
@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | use OCA\FederatedFileSharing\AddressHandler; |
| 28 | 28 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 29 | 29 | use OCP\Activity\IManager as IActivityManager; |
| 30 | -use OCP\Activity\IManager; |
|
| 31 | 30 | use OCP\App\IAppManager; |
| 32 | 31 | use OCP\Federation\Exceptions\ActionNotSupportedException; |
| 33 | 32 | use OCP\Federation\Exceptions\AuthenticationFailedException; |
@@ -42,7 +41,6 @@ discard block |
||
| 42 | 41 | use OCP\IURLGenerator; |
| 43 | 42 | use OCP\IUserManager; |
| 44 | 43 | use OCP\Notification\IManager as INotificationManager; |
| 45 | -use OCP\Share\Exceptions\ShareNotFound; |
|
| 46 | 44 | use OCP\Share\IShare; |
| 47 | 45 | use OCP\Util; |
| 48 | 46 | |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * BadRequestException constructor. |
| 30 | 30 | * |
| 31 | - * @param array $missingParameters |
|
| 32 | 31 | */ |
| 33 | 32 | public function __construct() { |
| 34 | 33 | $l = \OC::$server->getL10N('federation'); |