Completed
Pull Request — master (#32044)
by Thomas
20:08 queued 09:33
created
apps/files_sharing/lib/External/Manager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -308,6 +308,9 @@
 block discarded – undo
308 308
 		return $result;
309 309
 	}
310 310
 
311
+	/**
312
+	 * @param string $mountPoint
313
+	 */
311 314
 	public function removeShare($mountPoint) {
312 315
 		$mountPointObj = $this->mountManager->find($mountPoint);
313 316
 		$id = $mountPointObj->getStorage()->getCache()->getId('');
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Storage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 	 * check if it is a file located in data/user/files only files in the
135 135
 	 * 'files' directory should be moved to the trash
136 136
 	 *
137
-	 * @param $path
137
+	 * @param string $path
138 138
 	 * @return bool
139 139
 	 */
140 140
 	protected function shouldMoveToTrash($path) {
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
@@ -315,6 +315,9 @@
 block discarded – undo
315 315
 		}
316 316
 	}
317 317
 
318
+	/**
319
+	 * @param string $revision
320
+	 */
318 321
 	public static function restoreVersion($uid, $filename, $fileToRestore, $revision) {
319 322
 		if (\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED) !== true) {
320 323
 			return false;
Please login to merge, or discard this patch.
core/Command/User/SyncBackend.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 * @param SyncService $syncService
170 170
 	 * @param UserInterface $backend
171 171
 	 * @param string $missingAccountsAction
172
-	 * @param array $validActions
172
+	 * @param string[] $validActions
173 173
 	 */
174 174
 	private function syncMultipleUsers(
175 175
 		InputInterface $input,
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	 * @param UserInterface $backend
218 218
 	 * @param string $uid
219 219
 	 * @param string $missingAccountsAction
220
-	 * @param array $validActions
220
+	 * @param string[] $validActions
221 221
 	 */
222 222
 	private function syncSingleUser(
223 223
 		InputInterface $input,
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	}
259 259
 
260 260
 	/**
261
-	 * @param array $uids a list of uids to the the action
261
+	 * @param string[] $uids a list of uids to the the action
262 262
 	 * @param callable $callbackExists the callback used if the account for the uid exists. The
263 263
 	 * uid and the specific account will be passed as parameter to the callback in that order
264 264
 	 * @param callable $callbackMissing the callback used if the account doesn't exists. The uid (not
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 * @param string[] $unknownUsers
280 280
 	 * @param InputInterface $input
281 281
 	 * @param OutputInterface $output
282
-	 * @param $missingAccountsAction
282
+	 * @param string $missingAccountsAction
283 283
 	 * @param $validActions
284 284
 	 */
285 285
 	private function handleUnknownUsers(array $unknownUsers, InputInterface $input, OutputInterface $output, $missingAccountsAction, $validActions) {
Please login to merge, or discard this patch.
core/Controller/OccController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@
 block discarded – undo
131 131
 
132 132
 	/**
133 133
 	 * Check if command is allowed and has a valid security token
134
-	 * @param $command
135
-	 * @param $token
134
+	 * @param string $command
135
+	 * @param string $token
136 136
 	 */
137 137
 	protected function validateRequest($command, $token) {
138 138
 		$allowedHosts = ['::1', '127.0.0.1', 'localhost'];
Please login to merge, or discard this patch.
lib/private/Files/Node/Root.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	 * @param string $path
176 176
 	 * @throws \OCP\Files\NotFoundException
177 177
 	 * @throws \OCP\Files\NotPermittedException
178
-	 * @return File|Folder
178
+	 * @return string
179 179
 	 */
180 180
 	public function get($path) {
181 181
 		$path = $this->normalizePath($path);
@@ -373,6 +373,9 @@  discard block
 block discarded – undo
373 373
 		return $folder;
374 374
 	}
375 375
 
376
+	/**
377
+	 * @param string $fullPath
378
+	 */
376 379
 	private function resolveVirtualNode($fullPath) {
377 380
 		$pieces = \explode('/', $fullPath);
378 381
 		if ($pieces[1] !== 'meta') {
Please login to merge, or discard this patch.
lib/private/legacy/api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 	/**
270 270
 	 * authenticate the api call
271 271
 	 * @param array $action the action details as supplied to OC_API::register()
272
-	 * @return bool
272
+	 * @return boolean|string
273 273
 	 */
274 274
 	private static function isAuthorised($action) {
275 275
 		$level = $action['authlevel'];
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
 	/**
320 320
 	 * http basic auth
321
-	 * @return string|false (username, or false on failure)
321
+	 * @return string|boolean (username, or false on failure)
322 322
 	 */
323 323
 	private static function loginUser() {
324 324
 		if (self::$isLoggedIn === true) {
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
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 * @param string $wrongPath wrong path of the entry to fix
103 103
 	 * @param int $correctStorageNumericId numeric idea of the correct storage
104 104
 	 * @param string $correctPath value to which to set the path of the entry
105
-	 * @return bool true for success
105
+	 * @return boolean|null true for success
106 106
 	 */
107 107
 	private function fixEntryPath(IOutput $out, $fileId, $wrongPath, $correctStorageNumericId, $correctPath) {
108 108
 		// delete target if exists
@@ -132,6 +132,9 @@  discard block
 block discarded – undo
132 132
 		$out->advance(1, $text);
133 133
 	}
134 134
 
135
+	/**
136
+	 * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb
137
+	 */
135 138
 	private function addQueryConditionsParentIdWrongPath($qb) {
136 139
 		// thanks, VicDeo!
137 140
 		if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
@@ -171,6 +174,9 @@  discard block
 block discarded – undo
171 174
 		}
172 175
 	}
173 176
 
177
+	/**
178
+	 * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb
179
+	 */
174 180
 	private function addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId = null) {
175 181
 		// Subquery for parent existence
176 182
 		$qbe = $this->connection->getQueryBuilder();
@@ -200,6 +206,9 @@  discard block
 block discarded – undo
200 206
 		}
201 207
 	}
202 208
 
209
+	/**
210
+	 * @param integer $storageNumericId
211
+	 */
203 212
 	private function countResultsToProcessParentIdWrongPath($storageNumericId = null) {
204 213
 		$qb = $this->connection->getQueryBuilder();
205 214
 		$qb->select($qb->createFunction('COUNT(*)'));
@@ -210,6 +219,9 @@  discard block
 block discarded – undo
210 219
 		return $count;
211 220
 	}
212 221
 
222
+	/**
223
+	 * @param integer $storageNumericId
224
+	 */
213 225
 	private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) {
214 226
 		$qb = $this->connection->getQueryBuilder();
215 227
 		$qb->select($qb->createFunction('COUNT(*)'));
@@ -359,6 +371,7 @@  discard block
 block discarded – undo
359 371
 	 *
360 372
 	 * @param int $storageId storage id
361 373
 	 * @param string $path path for which to create the parent entry
374
+	 * @param integer $reuseFileId
362 375
 	 * @return int file id of the newly created parent
363 376
 	 */
364 377
 	private function getOrCreateEntry($storageId, $path, $reuseFileId = null) {
Please login to merge, or discard this patch.
lib/private/Tags.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -741,11 +741,19 @@  discard block
 block discarded – undo
741 741
 	}
742 742
 
743 743
 	// case-insensitive array_search
744
+
745
+	/**
746
+	 * @param string $needle
747
+	 */
744 748
 	protected function array_searchi($needle, $haystack, $mem='getName') {
745 749
 		if (!\is_array($haystack)) {
746 750
 			return false;
747 751
 		}
748 752
 		return \array_search(\strtolower($needle), \array_map(
753
+
754
+			/**
755
+			 * @param string $tag
756
+			 */
749 757
 			function ($tag) use ($mem) {
750 758
 				return \strtolower(\call_user_func([$tag, $mem]));
751 759
 			}, $haystack)
@@ -770,7 +778,7 @@  discard block
 block discarded – undo
770 778
 	* Get a tag by its name.
771 779
 	*
772 780
 	* @param string $name The tag name.
773
-	* @return integer|bool The tag object's offset within the $this->tags
781
+	* @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags
774 782
 	*                      array or false if it doesn't exist.
775 783
 	*/
776 784
 	private function getTagByName($name) {
@@ -781,7 +789,7 @@  discard block
 block discarded – undo
781 789
 	* Get a tag by its ID.
782 790
 	*
783 791
 	* @param string $id The tag ID to look for.
784
-	* @return integer|bool The tag object's offset within the $this->tags
792
+	* @return \OCP\AppFramework\Db\Entity The tag object's offset within the $this->tags
785 793
 	*                      array or false if it doesn't exist.
786 794
 	*/
787 795
 	private function getTagById($id) {
Please login to merge, or discard this patch.