Completed
Pull Request — master (#6901)
by Georg
14:42
created
lib/private/User/Session.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 	 * @param IUser $user
330 330
 	 * @param array $loginDetails
331 331
 	 * @param bool $regenerateSessionId
332
-	 * @return true returns true if login successful or an exception otherwise
332
+	 * @return boolean returns true if login successful or an exception otherwise
333 333
 	 * @throws LoginException
334 334
 	 */
335 335
 	public function completeLogin(IUser $user, array $loginDetails, $regenerateSessionId = true) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 	 * @param OC\Security\Bruteforce\Throttler $throttler
378 378
 	 * @throws LoginException
379 379
 	 * @throws PasswordLoginForbiddenException
380
-	 * @return boolean
380
+	 * @return boolean|null
381 381
 	 */
382 382
 	public function logClientIn($user,
383 383
 								$password,
@@ -431,6 +431,9 @@  discard block
 block discarded – undo
431 431
 		return $this->config->getSystemValue('token_auth_enforced', false);
432 432
 	}
433 433
 
434
+	/**
435
+	 * @param string $username
436
+	 */
434 437
 	protected function isTwoFactorEnforced($username) {
435 438
 		Util::emitHook(
436 439
 			'\OCA\Files_Sharing\API\Server2Server',
Please login to merge, or discard this patch.
apps/sharebymail/lib/ShareByMailProvider.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -276,10 +276,10 @@  discard block
 block discarded – undo
276 276
 	 * publish activity if a file/folder was shared by mail
277 277
 	 *
278 278
 	 * @param $subject
279
-	 * @param $parameters
280
-	 * @param $affectedUser
279
+	 * @param string[] $parameters
280
+	 * @param string $affectedUser
281 281
 	 * @param $fileId
282
-	 * @param $filePath
282
+	 * @param string $filePath
283 283
 	 */
284 284
 	protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) {
285 285
 		$event = $this->activityManager->generateEvent();
@@ -557,6 +557,7 @@  discard block
 block discarded – undo
557 557
 	 * @param string $uidOwner
558 558
 	 * @param int $permissions
559 559
 	 * @param string $token
560
+	 * @param string $password
560 561
 	 * @return int
561 562
 	 */
562 563
 	protected function addShareToDB($itemSource, $itemType, $shareWith, $sharedBy, $uidOwner, $permissions, $token, $password) {
@@ -950,7 +951,7 @@  discard block
 block discarded – undo
950 951
 	/**
951 952
 	 * get database row of a give share
952 953
 	 *
953
-	 * @param $id
954
+	 * @param integer $id
954 955
 	 * @return array
955 956
 	 * @throws ShareNotFound
956 957
 	 */
Please login to merge, or discard this patch.
lib/private/BackgroundJob/JobList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
 
321 321
 	/**
322 322
 	 * @param IJob $job
323
-	 * @param $timeTaken
323
+	 * @param integer $timeTaken
324 324
 	 */
325 325
 	public function setExecutionTime(IJob $job, $timeTaken) {
326 326
 		$query = $this->connection->getQueryBuilder();
Please login to merge, or discard this patch.
lib/private/Updater.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -431,7 +431,7 @@
 block discarded – undo
431 431
 	}
432 432
 
433 433
 	/**
434
-	 * @param array $disabledApps
434
+	 * @param string[] $disabledApps
435 435
 	 * @throws \Exception
436 436
 	 */
437 437
 	private function upgradeAppStoreApps(array $disabledApps) {
Please login to merge, or discard this patch.
lib/private/Diagnostics/Query.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@  discard block
 block discarded – undo
48 48
 		$this->stack = $stack;
49 49
 	}
50 50
 
51
+	/**
52
+	 * @param double $time
53
+	 */
51 54
 	public function end($time) {
52 55
 		$this->end = $time;
53 56
 	}
@@ -67,7 +70,7 @@  discard block
 block discarded – undo
67 70
 	}
68 71
 
69 72
 	/**
70
-	 * @return float
73
+	 * @return integer
71 74
 	 */
72 75
 	public function getStart() {
73 76
 		return $this->start;
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/FilesPlugin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@
 block discarded – undo
448 448
 	 *
449 449
 	 * @param string $path source path
450 450
 	 * @param string $destination destination path
451
-	 * @return bool|void false to stop handling, void to skip this handler
451
+	 * @return null|false false to stop handling, void to skip this handler
452 452
 	 */
453 453
 	public function beforeMoveFutureFile($path, $destination) {
454 454
 		$sourceNode = $this->tree->getNodeForPath($path);
Please login to merge, or discard this patch.
apps/theming/lib/Util.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	/**
72 72
 	 * get color for on-page elements:
73 73
 	 * theme color by default, grey if theme color is to bright
74
-	 * @param $color
74
+	 * @param string $color
75 75
 	 * @return string
76 76
 	 */
77 77
 	public function elementColor($color) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
 	/**
116 116
 	 * @param $app string app name
117
-	 * @return string|ISimpleFile path to app icon / file of logo
117
+	 * @return string path to app icon / file of logo
118 118
 	 */
119 119
 	public function getAppIcon($app) {
120 120
 		$app = str_replace(array('\0', '/', '\\', '..'), '', $app);
@@ -190,8 +190,8 @@  discard block
 block discarded – undo
190 190
 	/**
191 191
 	 * replace default color with a custom one
192 192
 	 *
193
-	 * @param $svg string content of a svg file
194
-	 * @param $color string color to match
193
+	 * @param string $svg string content of a svg file
194
+	 * @param string $color string color to match
195 195
 	 * @return string
196 196
 	 */
197 197
 	public function colorizeSvg($svg, $color) {
Please login to merge, or discard this patch.
lib/private/Settings/Manager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -265,6 +265,9 @@  discard block
 block discarded – undo
265 265
 		return $this->mapper->has($table, $className);
266 266
 	}
267 267
 
268
+	/**
269
+	 * @param string $type
270
+	 */
268 271
 	private function setupSettingsEntry($settingsClassName, $type) {
269 272
 		if (!class_exists($settingsClassName)) {
270 273
 			$this->log->debug('Could not find ' . $type . ' section class ' . $settingsClassName);
@@ -294,6 +297,9 @@  discard block
 block discarded – undo
294 297
 		}
295 298
 	}
296 299
 
300
+	/**
301
+	 * @param string $type
302
+	 */
297 303
 	private function getSectionTableForType($type) {
298 304
 		if($type === 'admin') {
299 305
 			return Mapper::TABLE_ADMIN_SECTIONS;
Please login to merge, or discard this patch.
apps/user_ldap/lib/Access.php 1 patch
Doc Comments   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 
492 492
 	/**
493 493
 	 * returns the internal Nextcloud name for the given LDAP DN of the user, false on DN outside of search DN or failure
494
-	 * @param string $dn the dn of the user object
494
+	 * @param string $fdn the dn of the user object
495 495
 	 * @param string $ldapName optional, the display name of the object
496 496
 	 * @return string|false with with the name to use in Nextcloud
497 497
 	 */
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 
509 509
 	/**
510 510
 	 * returns an internal Nextcloud name for the given LDAP DN, false on DN outside of search DN
511
-	 * @param string $dn the dn of the user object
511
+	 * @param string $fdn the dn of the user object
512 512
 	 * @param string $ldapName optional, the display name of the object
513 513
 	 * @param bool $isUser optional, whether it is a user object (otherwise group assumed)
514 514
 	 * @return string|false with with the name to use in Nextcloud
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
 	 * the login filter.
772 772
 	 *
773 773
 	 * @param string $loginName
774
-	 * @param array $attributes optional, list of attributes to read
774
+	 * @param string[] $attributes optional, list of attributes to read
775 775
 	 * @return array
776 776
 	 */
777 777
 	public function fetchUsersByLoginName($loginName, $attributes = array('dn')) {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
 
845 845
 	/**
846 846
 	 * @param string $filter
847
-	 * @param string|string[] $attr
847
+	 * @param string[] $attr
848 848
 	 * @param int $limit
849 849
 	 * @param int $offset
850 850
 	 * @return array
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 
893 893
 	/**
894 894
 	 * @param string $filter
895
-	 * @param string|string[] $attr
895
+	 * @param string[] $attr
896 896
 	 * @param int $limit
897 897
 	 * @param int $offset
898 898
 	 * @return false|int
@@ -989,6 +989,7 @@  discard block
 block discarded – undo
989 989
 	 * retrieved. Results will according to the order in the array.
990 990
 	 * @param int $limit optional, maximum results to be counted
991 991
 	 * @param int $offset optional, a starting point
992
+	 * @param string $filter
992 993
 	 * @return array|false array with the search result as first value and pagedSearchOK as
993 994
 	 * second | false if not successful
994 995
 	 * @throws \OC\ServerNotAvailableException
@@ -1240,7 +1241,7 @@  discard block
 block discarded – undo
1240 1241
 
1241 1242
 	/**
1242 1243
 	 * @param string $name
1243
-	 * @return bool|mixed|string
1244
+	 * @return string
1244 1245
 	 */
1245 1246
 	public function sanitizeUsername($name) {
1246 1247
 		if($this->connection->ldapIgnoreNamingRules) {
@@ -1264,6 +1265,7 @@  discard block
 block discarded – undo
1264 1265
 	* escapes (user provided) parts for LDAP filter
1265 1266
 	* @param string $input, the provided value
1266 1267
 	* @param bool $allowAsterisk whether in * at the beginning should be preserved
1268
+	* @param string $input
1267 1269
 	* @return string the escaped string
1268 1270
 	*/
1269 1271
 	public function escapeFilterPart($input, $allowAsterisk = false) {
Please login to merge, or discard this patch.