Completed
Pull Request — master (#9345)
by Björn
21:23
created
lib/private/Share20/ProviderFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
apps/cloud_federation_api/lib/Controller/RequestHandlerController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,6 @@
 block discarded – undo
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',...)
Please login to merge, or discard this patch.
lib/public/Federation/Exceptions/AuthenticationFailedException.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
apps/files_sharing/lib/External/Manager.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
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\Constants;
33 32
 use OCP\Federation\Exceptions\ActionNotSupportedException;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * share received from another server
145 145
 	 *
146 146
 	 * @param ICloudFederationShare $share
147
-	 * @return string provider specific unique ID of the share
147
+	 * @return integer provider specific unique ID of the share
148 148
 	 *
149 149
 	 * @throws ProviderCouldNotAddShareException
150 150
 	 * @throws \OCP\AppFramework\QueryException
@@ -468,6 +468,9 @@  discard block
 block discarded – undo
468 468
 		return [];
469 469
 	}
470 470
 
471
+	/**
472
+	 * @param string $id
473
+	 */
471 474
 	private function unshare($id, $notification) {
472 475
 
473 476
 		if (!$this->isS2SEnabled(true)) {
@@ -545,7 +548,7 @@  discard block
 block discarded – undo
545 548
 	/**
546 549
 	 * recipient of a share request to re-share the file with another user
547 550
 	 *
548
-	 * @param $id
551
+	 * @param string $id
549 552
 	 * @param $notification
550 553
 	 * @return array
551 554
 	 * @throws AuthenticationFailedException
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Controller/RequestHandlerController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@  discard block
 block discarded – undo
29 29
 
30 30
 namespace OCA\FederatedFileSharing\Controller;
31 31
 
32
-use OCA\Files_Sharing\Activity\Providers\RemoteShares;
33 32
 use OCA\FederatedFileSharing\AddressHandler;
34 33
 use OCA\FederatedFileSharing\FederatedShareProvider;
35 34
 use OCA\FederatedFileSharing\Notifications;
@@ -40,21 +39,17 @@  discard block
 block discarded – undo
40 39
 use OCP\AppFramework\OCS\OCSNotFoundException;
41 40
 use OCP\AppFramework\OCSController;
42 41
 use OCP\Constants;
43
-use OCP\Federation\Exceptions\AuthenticationFailedException;
44
-use OCP\Federation\Exceptions\BadRequestException;
45 42
 use OCP\Federation\Exceptions\ProviderCouldNotAddShareException;
46 43
 use OCP\Federation\Exceptions\ProviderDoesNotExistsException;
47 44
 use OCP\Federation\Exceptions\ShareNotFoundException;
48 45
 use OCP\Federation\ICloudFederationFactory;
49 46
 use OCP\Federation\ICloudFederationProviderManager;
50 47
 use OCP\Federation\ICloudIdManager;
51
-use OCP\Files\NotFoundException;
52 48
 use OCP\IDBConnection;
53 49
 use OCP\ILogger;
54 50
 use OCP\IRequest;
55 51
 use OCP\IUserManager;
56 52
 use OCP\Share;
57
-use OCP\Share\IShare;
58 53
 
59 54
 class RequestHandlerController extends OCSController {
60 55
 
Please login to merge, or discard this patch.