Completed
Pull Request — stable8.2 (#26169)
by Thomas
18:27
created
apps/files_external/lib/config/configadapter.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\Files_external\Service\UserStoragesService;
33 33
 use OCA\Files_External\Service\UserGlobalStoragesService;
34 34
 use OCA\Files_External\Lib\StorageConfig;
35
-use OCP\Files\StorageNotAvailableException;
36 35
 use OCA\Files_External\Lib\FailedStorage;
37 36
 
38 37
 /**
Please login to merge, or discard this patch.
apps/files_external/lib/sftp.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
 	}
196 196
 
197 197
 	/**
198
-	 * @return bool|string
198
+	 * @return string|false
199 199
 	 */
200 200
 	private function hostKeysPath() {
201 201
 		try {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 use OCP\IUser;
28 28
 use OCP\ILogger;
29 29
 use OCP\Files\Folder;
30
-
31 30
 use OC\Share20\Exception\ShareNotFound;
32 31
 
33 32
 /**
Please login to merge, or discard this patch.
apps/files_external/lib/smb.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@
 block discarded – undo
33 33
 use Icewind\SMB\Exception\NotFoundException;
34 34
 use Icewind\SMB\NativeServer;
35 35
 use Icewind\SMB\Server;
36
-use Icewind\Streams\CallbackWrapper;
37 36
 use Icewind\Streams\IteratorDirectory;
38 37
 use OC\Files\Filesystem;
39 38
 
Please login to merge, or discard this patch.
apps/files_external/service/storagesservice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@
 block discarded – undo
394 394
 	/**
395 395
 	 * Add new storage to the configuration
396 396
 	 *
397
-	 * @param array $newStorage storage attributes
397
+	 * @param StorageConfig $newStorage storage attributes
398 398
 	 *
399 399
 	 * @return StorageConfig storage config, with added id
400 400
 	 */
Please login to merge, or discard this patch.
apps/files_external/tests/amazons3migration.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@
 block discarded – undo
123 123
 		return $storages;
124 124
 	}
125 125
 
126
+	/**
127
+	 * @param string $id
128
+	 */
126 129
 	public function deleteStorage($id) {
127 130
 		$stmt = \OC::$server->getDatabaseConnection()->prepare(
128 131
 			'DELETE FROM `*PREFIX*storages` WHERE `id` = ?'
Please login to merge, or discard this patch.
apps/files_external/tests/controller/storagescontrollertest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@  discard block
 block discarded – undo
48 48
 		\OC_Mount_Config::$skipTest = false;
49 49
 	}
50 50
 
51
+	/**
52
+	 * @return \OCA\Files_External\Lib\Backend\Backend
53
+	 */
51 54
 	protected function getBackendMock($class = '\OCA\Files_External\Lib\Backend\SMB', $storageClass = '\OC\Files\Storage\SMB') {
52 55
 		$backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend')
53 56
 			->disableOriginalConstructor()
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
 		return $backend;
60 63
 	}
61 64
 
65
+	/**
66
+	 * @return \OCA\Files_External\Lib\Auth\AuthMechanism
67
+	 */
62 68
 	protected function getAuthMechMock($scheme = 'null', $class = '\OCA\Files_External\Lib\Auth\NullMechanism') {
63 69
 		$authMech = $this->getMockBuilder('\OCA\Files_External\Lib\Auth\AuthMechanism')
64 70
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
apps/files_external/tests/service/backendservicetest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -35,6 +35,11 @@
 block discarded – undo
35 35
 		$this->l10n = $this->getMock('\OCP\IL10N');
36 36
 	}
37 37
 
38
+	/**
39
+	 * @param string $class
40
+	 *
41
+	 * @return \OCA\Files_External\Lib\Backend\Backend
42
+	 */
38 43
 	protected function getBackendMock($class) {
39 44
 		$backend = $this->getMockBuilder('\OCA\Files_External\Lib\Backend\Backend')
40 45
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
apps/files_sharing/appinfo/application.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 
26 26
 namespace OCA\Files_Sharing\AppInfo;
27 27
 
28
-use OCA\Files_Sharing\Helper;
29 28
 use OCA\Files_Sharing\MountProvider;
30 29
 use OCA\Files_Sharing\Propagation\PropagationManager;
31 30
 use OCA\Files_Sharing\Propagation\GroupPropagationManager;
Please login to merge, or discard this patch.
apps/files_sharing/lib/cache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 	/**
99 99
 	 * get the stored metadata of a file or folder
100 100
 	 *
101
-	 * @param string|int $file
101
+	 * @param string $file
102 102
 	 * @return array|false
103 103
 	 */
104 104
 	public function get($file) {
Please login to merge, or discard this patch.