Completed
Branch master (51e8a3)
by
unknown
50:34
created
includes/api/ApiQueryBase.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * See ApiQuery::getNamedDB() for more information
119 119
 	 * @param string $name Name to assign to the database connection
120 120
 	 * @param int $db One of the DB_* constants
121
-	 * @param array $groups Query groups
121
+	 * @param string $groups Query groups
122 122
 	 * @return DatabaseBase
123 123
 	 */
124 124
 	public function selectNamedDB( $name, $db, $groups ) {
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
 
553 553
 	/**
554 554
 	 * @param string $hash
555
-	 * @return bool
555
+	 * @return integer
556 556
 	 */
557 557
 	public function validateSha1Hash( $hash ) {
558 558
 		return preg_match( '/^[a-f0-9]{40}$/', $hash );
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
 
561 561
 	/**
562 562
 	 * @param string $hash
563
-	 * @return bool
563
+	 * @return integer
564 564
 	 */
565 565
 	public function validateSha1Base36Hash( $hash ) {
566 566
 		return preg_match( '/^[a-z0-9]{31}$/', $hash );
Please login to merge, or discard this patch.
includes/api/ApiQueryCategoryMembers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
 	/**
51 51
 	 * @param string $hexSortkey
52
-	 * @return bool
52
+	 * @return integer
53 53
 	 */
54 54
 	private function validateHexSortkey( $hexSortkey ) {
55 55
 		// A hex sortkey has an unbound number of 2 letter pairs
Please login to merge, or discard this patch.
includes/api/ApiQueryExtLinksUsage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -202,6 +202,9 @@
 block discarded – undo
202 202
 		return $protocols;
203 203
 	}
204 204
 
205
+	/**
206
+	 * @return string|null
207
+	 */
205 208
 	public static function getProtocolPrefix( $protocol ) {
206 209
 		// Find the right prefix
207 210
 		global $wgUrlProtocols;
Please login to merge, or discard this patch.
includes/api/ApiQueryImageInfo.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	 * allows us to catch certain error conditions early (such as missing
326 326
 	 * required parameter).
327 327
 	 *
328
-	 * @param $image File
328
+	 * @param File $image File
329 329
 	 * @param $finalParams array List of parameters to transform image with
330 330
 	 */
331 331
 	protected function checkParameterNormalise( $image, $finalParams ) {
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
 	 * Returns all possible parameters to iiprop
701 701
 	 *
702 702
 	 * @param array $filter List of properties to filter out
703
-	 * @return array
703
+	 * @return string[]
704 704
 	 */
705 705
 	public static function getPropertyNames( $filter = array() ) {
706 706
 		return array_keys( self::getPropertyMessages( $filter ) );
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
 	 * @deprecated since 1.25
783 783
 	 * @param array $filter List of properties to filter out
784 784
 	 * @param string $modulePrefix
785
-	 * @return array
785
+	 * @return string[]
786 786
 	 */
787 787
 	public static function getPropertyDescriptions( $filter = array(), $modulePrefix = '' ) {
788 788
 		return array_merge(
Please login to merge, or discard this patch.
includes/api/ApiResult.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 	 *
470 470
 	 * @since 1.25
471 471
 	 * @param array &$arr To add $value to
472
-	 * @param string|int $name Index of $arr to add $value at.
472
+	 * @param string $name Index of $arr to add $value at.
473 473
 	 * @param mixed $value
474 474
 	 * @param int $flags Zero or more OR-ed flags like OVERRIDE | ADD_ON_TOP.
475 475
 	 */
@@ -486,10 +486,10 @@  discard block
 block discarded – undo
486 486
 	 *
487 487
 	 * @since 1.25
488 488
 	 * @param array|string|null $path See ApiResult::addValue()
489
-	 * @param string|int $name See ApiResult::setValue()
489
+	 * @param string $name See ApiResult::setValue()
490 490
 	 * @param mixed $value
491 491
 	 * @param int $flags Zero or more OR-ed flags like OVERRIDE | ADD_ON_TOP.
492
-	 * @return bool True if $value fits in the result, false if not
492
+	 * @return boolean|null True if $value fits in the result, false if not
493 493
 	 */
494 494
 	public function addContentValue( $path, $name, $value, $flags = 0 ) {
495 495
 		if ( $name === null ) {
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 	 * subelements rather than attributes.
574 574
 	 * @since 1.25
575 575
 	 * @param array|string|null $path See ApiResult::addValue()
576
-	 * @param array|string|int $names The element name(s) to be output as subelements
576
+	 * @param string $names The element name(s) to be output as subelements
577 577
 	 */
578 578
 	public function addSubelementsList( $path, $names ) {
579 579
 		$arr = &$this->path( $path );
Please login to merge, or discard this patch.
includes/api/ApiStashEdit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	 * @param WikiPage $page
129 129
 	 * @param Content $content
130 130
 	 * @param User $user
131
-	 * @return integer ApiStashEdit::ERROR_* constant
131
+	 * @return string ApiStashEdit::ERROR_* constant
132 132
 	 * @since 1.25
133 133
 	 */
134 134
 	public static function parseAndStash( WikiPage $page, Content $content, User $user ) {
Please login to merge, or discard this patch.
includes/api/ApiTag.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
 		return (bool)$result;
74 74
 	}
75 75
 
76
+	/**
77
+	 * @param string $type
78
+	 */
76 79
 	protected function processIndividual( $type, $params, $id ) {
77 80
 		$idResult = array( $type => $id );
78 81
 
Please login to merge, or discard this patch.
includes/AuthPlugin.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -323,6 +323,10 @@
 block discarded – undo
323 323
 }
324 324
 
325 325
 class AuthPluginUser {
326
+
327
+	/**
328
+	 * @param User $user
329
+	 */
326 330
 	function __construct( $user ) {
327 331
 		# Override this!
328 332
 	}
Please login to merge, or discard this patch.
includes/Block.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	/**
186 186
 	 * Return the list of ipblocks fields that should be selected to create
187 187
 	 * a new block.
188
-	 * @return array
188
+	 * @return string[]
189 189
 	 */
190 190
 	public static function selectFields() {
191 191
 		return array(
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
 	/**
1005 1005
 	 * Get a timestamp of the expiry for autoblocks
1006 1006
 	 *
1007
-	 * @param string|int $timestamp
1007
+	 * @param string|false $timestamp
1008 1008
 	 * @return string
1009 1009
 	 */
1010 1010
 	public static function getAutoblockExpiry( $timestamp ) {
@@ -1357,7 +1357,7 @@  discard block
 block discarded – undo
1357 1357
 	/**
1358 1358
 	 * @since 1.19
1359 1359
 	 *
1360
-	 * @return mixed|string
1360
+	 * @return string
1361 1361
 	 */
1362 1362
 	public function getExpiry() {
1363 1363
 		return $this->mExpiry;
@@ -1373,7 +1373,7 @@  discard block
 block discarded – undo
1373 1373
 
1374 1374
 	/**
1375 1375
 	 * Get the user who implemented this block
1376
-	 * @return User|string Local User object or string for a foreign user
1376
+	 * @return User Local User object or string for a foreign user
1377 1377
 	 */
1378 1378
 	public function getBlocker() {
1379 1379
 		return $this->blocker;
Please login to merge, or discard this patch.