Completed
Push — master ( 99c28a...4c4331 )
by Robin
47:48
created
apps/files_sharing/lib/controllers/externalsharescontroller.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * @param string $appName
47 47
 	 * @param IRequest $request
48
-	 * @param bool $incomingShareEnabled
49 48
 	 * @param \OCA\Files_Sharing\External\Manager $externalManager
50 49
 	 * @param IClientService $clientService
51 50
 	 */
@@ -84,7 +83,7 @@  discard block
 block discarded – undo
84 83
 	 * @NoAdminRequired
85 84
 	 * @NoOutgoingFederatedSharingRequired
86 85
 	 *
87
-	 * @param $id
86
+	 * @param integer $id
88 87
 	 * @return JSONResponse
89 88
 	 */
90 89
 	public function destroy($id) {
Please login to merge, or discard this patch.
apps/files_sharing/lib/controllers/sharecontroller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 	 * @UseSession
125 125
 	 *
126 126
 	 * Authenticates against password-protected shares
127
-	 * @param $token
127
+	 * @param string $token
128 128
 	 * @param string $password
129 129
 	 * @return RedirectResponse|TemplateResponse
130 130
 	 */
Please login to merge, or discard this patch.
apps/files_sharing/lib/middleware/sharingcheckmiddleware.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 use OCP\App\IAppManager;
28 28
 use OCP\AppFramework\Http\NotFoundResponse;
29 29
 use OCP\AppFramework\Middleware;
30
-use OCP\AppFramework\Http\TemplateResponse;
31 30
 use OCP\Files\NotFoundException;
32 31
 use OCP\IConfig;
33 32
 use OCP\AppFramework\Utility\IControllerMethodReflector;
Please login to merge, or discard this patch.
apps/files_sharing/lib/sharedmount.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -53,6 +53,11 @@
 block discarded – undo
53 53
 	 */
54 54
 	private $user;
55 55
 
56
+	/**
57
+	 * @param string $storage
58
+	 * @param string $mountpoint
59
+	 * @param \OCP\Files\Storage\IStorageFactory $loader
60
+	 */
56 61
 	public function __construct($storage, $mountpoint, $arguments = null, $loader = null) {
57 62
 		// first update the mount point before creating the parent
58 63
 		$this->ownerPropagator = $arguments['propagator'];
Please login to merge, or discard this patch.
apps/files_sharing/lib/sharedstorage.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,6 @@
 block discarded – undo
32 32
 
33 33
 use OC\Files\Filesystem;
34 34
 use OCA\Files_Sharing\ISharedStorage;
35
-use OCA\Files_Sharing\Propagator;
36
-use OCA\Files_Sharing\SharedMount;
37 35
 use OCP\Lock\ILockingProvider;
38 36
 
39 37
 /**
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -144,6 +144,9 @@
 block discarded – undo
144 144
 		return true;
145 145
 	}
146 146
 
147
+	/**
148
+	 * @param string $path
149
+	 */
147 150
 	public function url_stat($path) {
148 151
 		if (isset(self::$data[$path])) {
149 152
 			$size = strlen(self::$data[$path]);
Please login to merge, or discard this patch.
apps/files_sharing/tests/api/share20ocstest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -119,6 +119,16 @@
 block discarded – undo
119 119
 		$this->assertEquals($expected, $this->ocs->getShare(42));
120 120
 	}
121 121
 
122
+	/**
123
+	 * @param integer $id
124
+	 * @param integer $permissions
125
+	 * @param integer $shareTime
126
+	 * @param integer $parent
127
+	 * @param string $target
128
+	 * @param integer $mail_send
129
+	 * @param string $token
130
+	 * @param string $password
131
+	 */
122 132
 	public function createShare($id, $shareType, $sharedWith, $sharedBy, $path, $permissions,
123 133
 								$shareTime, $expiration, $parent, $target, $mail_send, $token=null,
124 134
 								$password=null) {
Please login to merge, or discard this patch.
apps/files_sharing/tests/api/shareestest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -81,6 +81,10 @@  discard block
 block discarded – undo
81 81
 		);
82 82
 	}
83 83
 
84
+	/**
85
+	 * @param string $uid
86
+	 * @param string $displayName
87
+	 */
84 88
 	protected function getUserMock($uid, $displayName) {
85 89
 		$user = $this->getMockBuilder('OCP\IUser')
86 90
 			->disableOriginalConstructor()
@@ -97,6 +101,9 @@  discard block
 block discarded – undo
97 101
 		return $user;
98 102
 	}
99 103
 
104
+	/**
105
+	 * @param string $gid
106
+	 */
100 107
 	protected function getGroupMock($gid) {
101 108
 		$group = $this->getMockBuilder('OCP\IGroup')
102 109
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
apps/files_sharing/tests/locking.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 
25 25
 use OC\Files\Filesystem;
26 26
 use OC\Files\View;
27
-use OC\Lock\MemcacheLockingProvider;
28 27
 use OCP\Lock\ILockingProvider;
29 28
 
30 29
 class Locking extends TestCase {
Please login to merge, or discard this patch.
apps/files_sharing/tests/share.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -218,6 +218,10 @@
 block discarded – undo
218 218
 
219 219
 	}
220 220
 
221
+	/**
222
+	 * @param OC\Files\FileInfo[] $content
223
+	 * @param string[] $expected
224
+	 */
221 225
 	public function verifyDirContent($content, $expected) {
222 226
 		foreach ($content as $c) {
223 227
 			if (!in_array($c['name'], $expected)) {
Please login to merge, or discard this patch.