@@ -118,7 +118,7 @@ discard block |
||
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 |
||
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 |
||
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 ); |
@@ -49,7 +49,7 @@ |
||
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 |
@@ -202,6 +202,9 @@ |
||
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; |
@@ -325,7 +325,7 @@ discard block |
||
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 |
||
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 |
||
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( |
@@ -469,7 +469,7 @@ discard block |
||
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 |
||
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 |
||
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 ); |
@@ -128,7 +128,7 @@ |
||
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 ) { |
@@ -73,6 +73,9 @@ |
||
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 |
@@ -323,6 +323,10 @@ |
||
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 | } |
@@ -185,7 +185,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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; |