Completed
Pull Request — master (#31265)
by Tom
13:55
created
apps/dav/lib/Upload/FutureFileZsync.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
  */
21 21
 namespace OCA\DAV\Upload;
22 22
 
23
-use OCA\DAV\Connector\Sabre\Directory;
24
-use Sabre\DAV\Exception\Forbidden;
25 23
 use Sabre\DAV\IFile;
26 24
 
27 25
 /**
Please login to merge, or discard this patch.
apps/dav/lib/Files/ZsyncPlugin.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
 namespace OCA\DAV\Files;
22 22
 
23 23
 use OC\AppFramework\Http;
24
-use OCP\Files\NotFoundException;
25
-use OCP\Files\NotPermittedException;
26 24
 use Sabre\DAV\Server;
27 25
 use Sabre\DAV\ServerPlugin;
28 26
 use Sabre\DAV\PropFind;
Please login to merge, or discard this patch.
apps/files_versions/lib/Storage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -310,6 +310,9 @@
 block discarded – undo
310 310
 	}
311 311
 
312 312
 
313
+	/**
314
+	 * @param string $revision
315
+	 */
313 316
 	public static function restoreVersion($uid, $filename, $fileToRestore, $revision) {
314 317
 		if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) !== true) {
315 318
 			return false;
Please login to merge, or discard this patch.
apps/dav/lib/Upload/ChunkingPluginZsync.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -110,6 +110,7 @@
 block discarded – undo
110 110
 	 *
111 111
 	 * @param string &$zsyncMetadata actual metadata
112 112
 	 * @param string $destination destination path
113
+	 * @param string|null $zsyncMetadata
113 114
 	 */
114 115
 	private function postMoveZsync(&$zsyncMetadata, $destination) {
115 116
 		if (!$zsyncMetadata)
Please login to merge, or discard this patch.
lib/private/User/Manager.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -432,6 +432,9 @@
 block discarded – undo
432 432
 		}, $accounts);
433 433
 	}
434 434
 
435
+	/**
436
+	 * @param string $backendClass
437
+	 */
435 438
 	public function getBackend($backendClass) {
436 439
 		if (isset($this->backends[$backendClass])) {
437 440
 			return $this->backends[$backendClass];
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,6 @@
 block discarded – undo
41 41
 use OCP\IUser;
42 42
 use OCP\IUserManager;
43 43
 use OCP\IConfig;
44
-use OCP\User\IProvidesExtendedSearchBackend;
45
-use OCP\User\IProvidesEMailBackend;
46
-use OCP\User\IProvidesQuotaBackend;
47 44
 use OCP\UserInterface;
48 45
 use OCP\Util\UserSearch;
49 46
 use Symfony\Component\EventDispatcher\GenericEvent;
Please login to merge, or discard this patch.
lib/private/Mail/Message.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 	/**
110 110
 	 * Returns the Reply-To address of this message
111 111
 	 *
112
-	 * @return array
112
+	 * @return string
113 113
 	 */
114 114
 	public function getReplyTo() {
115 115
 		return $this->swiftMessage->getReplyTo();
Please login to merge, or discard this patch.
lib/private/Repair/RepairMismatchFileCachePath.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 * @param string $wrongPath wrong path of the entry to fix
96 96
 	 * @param int $correctStorageNumericId numeric idea of the correct storage
97 97
 	 * @param string $correctPath value to which to set the path of the entry 
98
-	 * @return bool true for success
98
+	 * @return boolean|null true for success
99 99
 	 */
100 100
 	private function fixEntryPath(IOutput $out, $fileId, $wrongPath, $correctStorageNumericId, $correctPath) {
101 101
 		// delete target if exists
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
 		$out->advance(1, $text);
126 126
 	}
127 127
 
128
+	/**
129
+	 * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb
130
+	 */
128 131
 	private function addQueryConditionsParentIdWrongPath($qb) {
129 132
 		// thanks, VicDeo!
130 133
 		if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
@@ -164,6 +167,9 @@  discard block
 block discarded – undo
164 167
 		}
165 168
 	}
166 169
 
170
+	/**
171
+	 * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb
172
+	 */
167 173
 	private function addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId = null) {
168 174
 		// Subquery for parent existence
169 175
 		$qbe = $this->connection->getQueryBuilder();
@@ -193,6 +199,9 @@  discard block
 block discarded – undo
193 199
 		}
194 200
 	}
195 201
 
202
+	/**
203
+	 * @param integer $storageNumericId
204
+	 */
196 205
 	private function countResultsToProcessParentIdWrongPath($storageNumericId = null) {
197 206
 		$qb = $this->connection->getQueryBuilder();
198 207
 		$qb->select($qb->createFunction('COUNT(*)'));
@@ -203,6 +212,9 @@  discard block
 block discarded – undo
203 212
 		return $count;
204 213
 	}
205 214
 
215
+	/**
216
+	 * @param integer $storageNumericId
217
+	 */
206 218
 	private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) {
207 219
 		$qb = $this->connection->getQueryBuilder();
208 220
 		$qb->select($qb->createFunction('COUNT(*)'));
@@ -353,6 +365,7 @@  discard block
 block discarded – undo
353 365
 	 *
354 366
 	 * @param int $storageId storage id
355 367
 	 * @param string $path path for which to create the parent entry
368
+	 * @param integer $reuseFileId
356 369
 	 * @return int file id of the newly created parent
357 370
 	 */
358 371
 	private function getOrCreateEntry($storageId, $path, $reuseFileId = null) {
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/CardDavBackend.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,8 @@  discard block
 block discarded – undo
219 219
 	}
220 220
 
221 221
 	/**
222
-	 * @param $addressBookUri
222
+	 * @param string $addressBookUri
223
+	 * @param string $principal
223 224
 	 * @return array|null
224 225
 	 */
225 226
 	public function getAddressBooksByUri($principal, $addressBookUri) {
@@ -909,6 +910,7 @@  discard block
 block discarded – undo
909 910
 	 *   * readOnly - boolean
910 911
 	 *   * summary - Optional, a description for the share
911 912
 	 *
913
+	 * @param integer $addressBookId
912 914
 	 * @return array
913 915
 	 */
914 916
 	public function getShares($addressBookId) {
@@ -1013,7 +1015,7 @@  discard block
 block discarded – undo
1013 1015
 
1014 1016
 	/**
1015 1017
 	 * For shared address books the sharee is set in the ACL of the address book
1016
-	 * @param $addressBookId
1018
+	 * @param integer $addressBookId
1017 1019
 	 * @param $acl
1018 1020
 	 * @return array
1019 1021
 	 */
@@ -1021,6 +1023,9 @@  discard block
 block discarded – undo
1021 1023
 		return $this->sharingBackend->applyShareAcl($addressBookId, $acl);
1022 1024
 	}
1023 1025
 
1026
+	/**
1027
+	 * @param boolean $toV2
1028
+	 */
1024 1029
 	private function convertPrincipal($principalUri, $toV2 = null) {
1025 1030
 		if ($this->principalBackend->getPrincipalPrefix() === 'principals') {
1026 1031
 			list(, $name) = URLUtil::splitPath($principalUri);
Please login to merge, or discard this patch.
apps/dav/lib/Server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
 	}
279 279
 
280 280
 	/**
281
-	 * @param string[] $subTree
281
+	 * @param string[] $subTrees
282 282
 	 * @return bool
283 283
 	 */
284 284
 	private function isRequestForSubtree(array $subTrees) {
Please login to merge, or discard this patch.