Completed
Pull Request — master (#29107)
by Piotr
10:09
created
lib/private/AllConfig.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -449,7 +449,7 @@
 block discarded – undo
449 449
 	 * In some environments the system config file is readonly. Find out if this
450 450
 	 * is the case.
451 451
 	 *
452
-	 * @return boolean
452
+	 * @return false|string
453 453
 	 * @since 10.0.3
454 454
 	 */
455 455
 	public function isSystemConfigReadOnly() {
Please login to merge, or discard this patch.
lib/private/Files/Storage/Common.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -699,7 +699,7 @@
 block discarded – undo
699 699
 	}
700 700
 
701 701
 	/**
702
-	 * @param $internalPath
702
+	 * @param string $internalPath
703 703
 	 * @return array
704 704
 	 */
705 705
 	private function convertInternalPathToGlobalPath($internalPath) {
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.
lib/private/User/User.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@
 block discarded – undo
41 41
 use OCP\IConfig;
42 42
 use OCP\IUserBackend;
43 43
 use OCP\User\IChangePasswordBackend;
44
-use OCP\UserInterface;
45 44
 use Symfony\Component\EventDispatcher\EventDispatcher;
46 45
 use Symfony\Component\EventDispatcher\GenericEvent;
47 46
 
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * @param Account $account
87 87
 	 * @param AccountMapper $mapper
88 88
 	 * @param MembershipManager $membershipManager
89
-	 * @param null $emitter
89
+	 * @param Manager $emitter
90 90
 	 * @param IConfig|null $config
91 91
 	 * @param null $urlGenerator
92 92
 	 * @param EventDispatcher|null $eventDispatcher
@@ -474,6 +474,10 @@  discard block
 block discarded – undo
474 474
 		return $url;
475 475
 	}
476 476
 
477
+	/**
478
+	 * @param string $feature
479
+	 * @param string $value
480
+	 */
477 481
 	public function triggerChange($feature, $value = null) {
478 482
 		if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) {
479 483
 			$this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]);
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/File.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,6 +257,9 @@  discard block
 block discarded – undo
257 257
 			'file', 'create');
258 258
 	}
259 259
 
260
+	/**
261
+	 * @param string $path
262
+	 */
260 263
 	private function getPartFileBasePath($path) {
261 264
 		$partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true);
262 265
 		if ($partFileInStorage) {
@@ -626,7 +629,7 @@  discard block
 block discarded – undo
626 629
 	/**
627 630
 	 * Set $algo to get a specific checksum, leave null to get all checksums
628 631
 	 * (space seperated)
629
-	 * @param null $algo
632
+	 * @param string $algo
630 633
 	 * @return string
631 634
 	 */
632 635
 	public function getChecksum($algo = null) {
@@ -649,6 +652,9 @@  discard block
 block discarded – undo
649 652
 		return '';
650 653
 	}
651 654
 
655
+	/**
656
+	 * @param string $string
657
+	 */
652 658
 	protected function header($string) {
653 659
 		\header($string);
654 660
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/CorsPlugin.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * This method should set up the required event subscriptions.
63 63
 	 *
64 64
 	 * @param \Sabre\DAV\Server $server
65
-	 * @return void
65
+	 * @return false|null
66 66
 	 */
67 67
 	public function initialize(\Sabre\DAV\Server $server) {
68 68
 		$this->server = $server;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * @param RequestInterface $request
97 97
 	 * @param ResponseInterface $response
98 98
 	 *
99
-	 * @return false
99
+	 * @return false|null
100 100
 	 */
101 101
 	public function setOptionsRequestHeaders(RequestInterface $request, ResponseInterface $response) {
102 102
 		$authorization = $request->getHeader('Authorization');
Please login to merge, or discard this patch.
lib/private/legacy/response.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 	 * @param string $domain
276 276
 	 * @param Sabre\HTTP\ResponseInterface $response
277 277
 	 * @param \OCP\IConfig $config
278
-	 * @param Array $headers
278
+	 * @param string[] $headers
279 279
 	 *
280 280
 	 * Format of $headers:
281 281
 	 * Array [
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 	 * This function adds the CORS headers for all domains
315 315
 	 *
316 316
 	 * @param Sabre\HTTP\ResponseInterface $response
317
-	 * @param Array $headers
317
+	 * @param string[] $headers
318 318
 	 *
319 319
 	 * Format of $headers:
320 320
 	 * Array [
Please login to merge, or discard this patch.
lib/private/App/AppManager.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	/**
123 123
 	 * List all installed apps
124 124
 	 *
125
-	 * @return string[]
125
+	 * @return integer[]
126 126
 	 */
127 127
 	public function getInstalledApps() {
128 128
 		return array_keys($this->getInstalledAppsValues());
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	/**
232 232
 	 * Do not allow more than one active app-theme
233 233
 	 *
234
-	 * @param $appId
234
+	 * @param string $appId
235 235
 	 * @throws AppManagerException
236 236
 	 */
237 237
 	protected function canEnableTheme($appId) {
@@ -390,6 +390,9 @@  discard block
 block discarded – undo
390 390
 		return in_array($appId, $this->shippedApps);
391 391
 	}
392 392
 
393
+	/**
394
+	 * @param string $appId
395
+	 */
393 396
 	private function isAlwaysEnabled($appId) {
394 397
 		$alwaysEnabled = $this->getAlwaysEnabledApps();
395 398
 		return in_array($appId, $alwaysEnabled);
@@ -418,7 +421,7 @@  discard block
 block discarded – undo
418 421
 	/**
419 422
 	 * @param string $package package path
420 423
 	 * @param bool $skipMigrations whether to skip migrations, which would only install the code
421
-	 * @return string|false app id or false in case of error
424
+	 * @return integer app id or false in case of error
422 425
 	 * @since 10.0
423 426
 	 */
424 427
 	public function installApp($package, $skipMigrations = false) {
@@ -431,7 +434,7 @@  discard block
 block discarded – undo
431 434
 
432 435
 	/**
433 436
 	 * @param string $package
434
-	 * @return mixed
437
+	 * @return boolean
435 438
 	 * @since 10.0
436 439
 	 */
437 440
 	public function updateApp($package) {
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.