@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @since 1.24 |
120 | 120 | * @param string|array $type |
121 | 121 | * @throws MWException |
122 | - * @return int|array RC_TYPE |
|
122 | + * @return string RC_TYPE |
|
123 | 123 | */ |
124 | 124 | public static function parseToRCType( $type ) { |
125 | 125 | if ( is_array( $type ) ) { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * Find the first recent change matching some specific conditions |
173 | 173 | * |
174 | 174 | * @param array $conds Array of conditions |
175 | - * @param mixed $fname Override the method name in profiling/logs |
|
175 | + * @param string $fname Override the method name in profiling/logs |
|
176 | 176 | * @param int $dbType DB_* constant |
177 | 177 | * |
178 | 178 | * @return RecentChange|null |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * Return the list of recentchanges fields that should be selected to create |
196 | 196 | * a new recentchanges object. |
197 | - * @return array |
|
197 | + * @return string[] |
|
198 | 198 | */ |
199 | 199 | public static function selectFields() { |
200 | 200 | return array( |
@@ -919,6 +919,9 @@ discard block |
||
919 | 919 | return ChangesList::showCharacterDifference( $old, $new ); |
920 | 920 | } |
921 | 921 | |
922 | + /** |
|
923 | + * @param string $ip |
|
924 | + */ |
|
922 | 925 | private static function checkIPAddress( $ip ) { |
923 | 926 | global $wgRequest; |
924 | 927 | if ( $ip ) { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * we consider the tag hidden, and return false. |
90 | 90 | * |
91 | 91 | * @param string $tag Tag |
92 | - * @return string|bool Tag description or false if tag is to be hidden. |
|
92 | + * @return string|false Tag description or false if tag is to be hidden. |
|
93 | 93 | * @since 1.25 Returns false if tag is to be hidden. |
94 | 94 | */ |
95 | 95 | public static function tagDescription( $tag ) { |
@@ -145,6 +145,9 @@ discard block |
||
145 | 145 | * Pass a variable whose value is null if the log_id is not relevant or unknown. |
146 | 146 | * @param string $params Params to put in the ct_params field of table |
147 | 147 | * 'change_tag' when adding tags |
148 | + * @param integer $rc_id |
|
149 | + * @param integer $rev_id |
|
150 | + * @param integer $log_id |
|
148 | 151 | * |
149 | 152 | * @throws MWException When $rc_id, $rev_id and $log_id are all null |
150 | 153 | * @return array Index 0 is an array of tags actually added, index 1 is an |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @throws MWException |
39 | 39 | * @param string $collationName |
40 | - * @return Collation |
|
40 | + * @return string |
|
41 | 41 | */ |
42 | 42 | static function factory( $collationName ) { |
43 | 43 | switch ( $collationName ) { |
@@ -296,6 +296,9 @@ discard block |
||
296 | 296 | |
297 | 297 | const RECORD_LENGTH = 14; |
298 | 298 | |
299 | + /** |
|
300 | + * @param string $locale |
|
301 | + */ |
|
299 | 302 | function __construct( $locale ) { |
300 | 303 | if ( !extension_loaded( 'intl' ) ) { |
301 | 304 | throw new MWException( 'An ICU collation was requested, ' . |
@@ -512,6 +515,9 @@ discard block |
||
512 | 515 | return $data; |
513 | 516 | } |
514 | 517 | |
518 | + /** |
|
519 | + * @param integer $index |
|
520 | + */ |
|
515 | 521 | function getLetterByIndex( $index ) { |
516 | 522 | if ( $this->firstLetterData === null ) { |
517 | 523 | $this->getFirstLetterData(); |
@@ -563,7 +569,7 @@ discard block |
||
563 | 569 | * currently in use, or false when it can't be determined. |
564 | 570 | * |
565 | 571 | * @since 1.21 |
566 | - * @return string|bool |
|
572 | + * @return false|string |
|
567 | 573 | */ |
568 | 574 | static function getUnicodeVersionForICU() { |
569 | 575 | $icuVersion = IcuCollation::getICUVersion(); |
@@ -621,6 +627,11 @@ discard block |
||
621 | 627 | parent::__construct( 'et' ); |
622 | 628 | } |
623 | 629 | |
630 | + /** |
|
631 | + * @param string $string |
|
632 | + * |
|
633 | + * @return string |
|
634 | + */ |
|
624 | 635 | private static function mangle( $string ) { |
625 | 636 | return str_replace( |
626 | 637 | array( 'w', 'W' ), |
@@ -629,6 +640,9 @@ discard block |
||
629 | 640 | ); |
630 | 641 | } |
631 | 642 | |
643 | + /** |
|
644 | + * @param string $string |
|
645 | + */ |
|
632 | 646 | private static function unmangle( $string ) { |
633 | 647 | // Casing data is lost… |
634 | 648 | return str_replace( |
@@ -219,7 +219,7 @@ |
||
219 | 219 | * @param bool $recursive |
220 | 220 | * @param ParserOutput $parserOutput |
221 | 221 | * |
222 | - * @return DataUpdate[] |
|
222 | + * @return LinksUpdate[] |
|
223 | 223 | * |
224 | 224 | * @see Content::getSecondaryDataUpdates() |
225 | 225 | */ |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | * |
650 | 650 | * @param IContextSource $context Context to use, anything else will be ignored. |
651 | 651 | * @param int $old Revision ID we want to show and diff with. |
652 | - * @param int|string $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'. |
|
652 | + * @param integer $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'. |
|
653 | 653 | * @param int $rcid FIXME: Deprecated, no longer used. Defaults to 0. |
654 | 654 | * @param bool $refreshCache If set, refreshes the diff cache. Defaults to false. |
655 | 655 | * @param bool $unhide If set, allow viewing deleted revs. Defaults to false. |
@@ -787,7 +787,7 @@ discard block |
||
787 | 787 | * @param Content $myContent One of the page's conflicting contents. |
788 | 788 | * @param Content $yourContent One of the page's conflicting contents. |
789 | 789 | * |
790 | - * @return Content|bool Always false. |
|
790 | + * @return boolean Always false. |
|
791 | 791 | */ |
792 | 792 | public function merge3( Content $oldContent, Content $myContent, Content $yourContent ) { |
793 | 793 | return false; |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | * @param Title $title The page's title |
880 | 880 | * @param bool &$hasHistory Whether the page has a history |
881 | 881 | * |
882 | - * @return mixed String containing deletion reason or empty string, or |
|
882 | + * @return false|string String containing deletion reason or empty string, or |
|
883 | 883 | * boolean false if no revision occurred |
884 | 884 | * |
885 | 885 | * @todo &$hasHistory is extremely ugly, it's here because |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | * @param Revision $undo The revision to undo |
990 | 990 | * @param Revision $undoafter Must be an earlier revision than $undo |
991 | 991 | * |
992 | - * @return mixed String on success, false on failure |
|
992 | + * @return null|Content String on success, false on failure |
|
993 | 993 | */ |
994 | 994 | public function getUndoContent( Revision $current, Revision $undo, Revision $undoafter ) { |
995 | 995 | $cur_content = $current->getContent(); |
@@ -329,7 +329,6 @@ |
||
329 | 329 | * it would set only the original context, and not take |
330 | 330 | * into account any changes. |
331 | 331 | * |
332 | - * @param mixed $args,... Arguments to wfMessage |
|
333 | 332 | * @return Message |
334 | 333 | */ |
335 | 334 | public function msg() { |
@@ -323,7 +323,7 @@ |
||
323 | 323 | /** |
324 | 324 | * Set the Language object |
325 | 325 | * |
326 | - * @param Language|string $l Language instance or language code |
|
326 | + * @param Language $l Language instance or language code |
|
327 | 327 | * @throws MWException |
328 | 328 | * @since 1.19 |
329 | 329 | */ |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * - false to disable debugging |
185 | 185 | * - omitted or null to do nothing |
186 | 186 | * |
187 | - * @return bool|null Previous value of the flag |
|
187 | + * @return boolean Previous value of the flag |
|
188 | 188 | */ |
189 | 189 | public function debug( $debug = null ) { |
190 | 190 | return wfSetBit( $this->mFlags, DBO_DEBUG, $debug ); |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | } |
636 | 636 | |
637 | 637 | /** |
638 | - * @return bool|string |
|
638 | + * @return string|false |
|
639 | 639 | */ |
640 | 640 | protected function restoreErrorHandler() { |
641 | 641 | restore_error_handler(); |
@@ -1080,7 +1080,7 @@ discard block |
||
1080 | 1080 | * |
1081 | 1081 | * @param array $options Associative array of options to be turned into |
1082 | 1082 | * an SQL query, valid keys are listed in the function. |
1083 | - * @return array |
|
1083 | + * @return string[] |
|
1084 | 1084 | * @see DatabaseBase::select() |
1085 | 1085 | */ |
1086 | 1086 | public function makeSelectOptions( $options ) { |
@@ -2921,8 +2921,8 @@ discard block |
||
2921 | 2921 | * on object's error ignore settings). |
2922 | 2922 | * |
2923 | 2923 | * @param string $filename File name to open |
2924 | - * @param bool|callable $lineCallback Optional function called before reading each line |
|
2925 | - * @param bool|callable $resultCallback Optional function called for each MySQL result |
|
2924 | + * @param boolean $lineCallback Optional function called before reading each line |
|
2925 | + * @param boolean $resultCallback Optional function called for each MySQL result |
|
2926 | 2926 | * @param bool|string $fname Calling function name or false if name should be |
2927 | 2927 | * generated dynamically using $filename |
2928 | 2928 | * @param bool|callable $inputCallback Optional function called for each |
@@ -3235,7 +3235,7 @@ discard block |
||
3235 | 3235 | } |
3236 | 3236 | |
3237 | 3237 | /** |
3238 | - * @return string|bool Reason this DB is read-only or false if it is not |
|
3238 | + * @return string|false Reason this DB is read-only or false if it is not |
|
3239 | 3239 | */ |
3240 | 3240 | protected function getReadOnlyReason() { |
3241 | 3241 | $reason = $this->getLBInfo( 'readOnlyReason' ); |
@@ -328,7 +328,7 @@ |
||
328 | 328 | /** |
329 | 329 | * @param DatabaseBase $db |
330 | 330 | * @param string $error |
331 | - * @param int|string $errno |
|
331 | + * @param integer $errno |
|
332 | 332 | * @param string $sql |
333 | 333 | * @param string $fname |
334 | 334 | */ |