@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * @param Language $langobj |
33 | 33 | * @param string $maincode |
34 | - * @param array $variants |
|
34 | + * @param string[] $variants |
|
35 | 35 | * @param array $variantfallbacks |
36 | 36 | * @param array $flags |
37 | 37 | * @param array $manualLevel |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @param string $string |
49 | - * @return mixed|string |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | function lcfirst( $string ) { |
52 | 52 | if ( strlen( $string ) && $string[0] == 'I' ) { |
@@ -121,6 +121,9 @@ |
||
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param IDatabase $dbw |
|
126 | + */ |
|
124 | 127 | public function doSpecialPageCacheUpdates( $dbw ) { |
125 | 128 | global $wgSpecialPageCacheUpdates; |
126 | 129 |
@@ -198,7 +198,7 @@ |
||
198 | 198 | * Call a method of each tracked load balancer |
199 | 199 | * |
200 | 200 | * @param string $methodName |
201 | - * @param array $args |
|
201 | + * @param string[] $args |
|
202 | 202 | */ |
203 | 203 | private function forEachLBCallMethod( $methodName, array $args = array() ) { |
204 | 204 | $this->forEachLB( |
@@ -92,7 +92,7 @@ |
||
92 | 92 | * Adds a line to the log |
93 | 93 | * |
94 | 94 | * @since 1.19 |
95 | - * @param mixed $str |
|
95 | + * @param string $str |
|
96 | 96 | */ |
97 | 97 | public static function log( $str ) { |
98 | 98 | if ( !self::$enabled ) { |
@@ -470,6 +470,10 @@ discard block |
||
470 | 470 | return $status; |
471 | 471 | } |
472 | 472 | |
473 | + /** |
|
474 | + * @param string $fullCont |
|
475 | + * @param string $dirRel |
|
476 | + */ |
|
473 | 477 | protected function doSecureInternal( $fullCont, $dirRel, array $params ) { |
474 | 478 | $status = Status::newGood(); |
475 | 479 | list( , $shortCont, ) = FileBackend::splitStoragePath( $params['dir'] ); |
@@ -885,7 +889,7 @@ discard block |
||
885 | 889 | |
886 | 890 | /** |
887 | 891 | * @see Iterator::current() |
888 | - * @return string|bool String or false |
|
892 | + * @return string String or false |
|
889 | 893 | */ |
890 | 894 | public function current() { |
891 | 895 | return $this->getRelPath( $this->iter->current()->getPathname() ); |
@@ -377,7 +377,7 @@ |
||
377 | 377 | |
378 | 378 | /** |
379 | 379 | * @see JobQueue::pop() |
380 | - * @return Job|bool |
|
380 | + * @return Job |
|
381 | 381 | */ |
382 | 382 | abstract protected function doPop(); |
383 | 383 |
@@ -302,8 +302,8 @@ |
||
302 | 302 | * @param \WebRequest $request |
303 | 303 | * @param string $key |
304 | 304 | * @param string $prefix |
305 | - * @param mixed $default |
|
306 | - * @return mixed |
|
305 | + * @param boolean $default |
|
306 | + * @return string |
|
307 | 307 | */ |
308 | 308 | protected function getCookie( $request, $key, $prefix, $default = null ) { |
309 | 309 | $value = $request->getCookie( $key, $prefix, $default ); |
@@ -2169,7 +2169,7 @@ discard block |
||
2169 | 2169 | * |
2170 | 2170 | * @param string $text |
2171 | 2171 | * |
2172 | - * @return string|bool Matching string or false |
|
2172 | + * @return string|false Matching string or false |
|
2173 | 2173 | */ |
2174 | 2174 | public static function matchSpamRegex( $text ) { |
2175 | 2175 | global $wgSpamRegex; |
@@ -2183,7 +2183,7 @@ discard block |
||
2183 | 2183 | * |
2184 | 2184 | * @param string $text |
2185 | 2185 | * |
2186 | - * @return string|bool Matching string or false |
|
2186 | + * @return string|false Matching string or false |
|
2187 | 2187 | */ |
2188 | 2188 | public static function matchSummarySpamRegex( $text ) { |
2189 | 2189 | global $wgSummarySpamRegex; |
@@ -2194,7 +2194,7 @@ discard block |
||
2194 | 2194 | /** |
2195 | 2195 | * @param string $text |
2196 | 2196 | * @param array $regexes |
2197 | - * @return bool|string |
|
2197 | + * @return string|false |
|
2198 | 2198 | */ |
2199 | 2199 | protected static function matchSpamRegexInternal( $text, $regexes ) { |
2200 | 2200 | foreach ( $regexes as $regex ) { |
@@ -2437,7 +2437,7 @@ discard block |
||
2437 | 2437 | * $this->allowNonTextContent to true to allow editing of non-textual |
2438 | 2438 | * content. |
2439 | 2439 | * |
2440 | - * @param string|null|bool $text Text to unserialize |
|
2440 | + * @param false|string $text Text to unserialize |
|
2441 | 2441 | * @return Content The content object created from $text. If $text was false |
2442 | 2442 | * or null, false resp. null will be returned instead. |
2443 | 2443 | * |
@@ -3128,6 +3128,10 @@ discard block |
||
3128 | 3128 | $this->showTextbox( $this->textbox2, 'wpTextbox2', array( 'tabindex' => 6, 'readonly' ) ); |
3129 | 3129 | } |
3130 | 3130 | |
3131 | + /** |
|
3132 | + * @param string $text |
|
3133 | + * @param string $name |
|
3134 | + */ |
|
3131 | 3135 | protected function showTextbox( $text, $name, $customAttribs = array() ) { |
3132 | 3136 | global $wgOut, $wgUser; |
3133 | 3137 | |
@@ -3157,6 +3161,9 @@ discard block |
||
3157 | 3161 | $wgOut->addHTML( Html::textarea( $name, $wikitext, $attribs ) ); |
3158 | 3162 | } |
3159 | 3163 | |
3164 | + /** |
|
3165 | + * @param string $previewOutput |
|
3166 | + */ |
|
3160 | 3167 | protected function displayPreviewArea( $previewOutput, $isOnTop = false ) { |
3161 | 3168 | global $wgOut; |
3162 | 3169 | $classes = array(); |
@@ -3740,7 +3747,7 @@ discard block |
||
3740 | 3747 | } |
3741 | 3748 | |
3742 | 3749 | /** |
3743 | - * @return array |
|
3750 | + * @return Title[] |
|
3744 | 3751 | */ |
3745 | 3752 | function getTemplates() { |
3746 | 3753 | if ( $this->preview || $this->section != '' ) { |
@@ -3763,7 +3770,7 @@ discard block |
||
3763 | 3770 | * Shows a bulletin board style toolbar for common editing functions. |
3764 | 3771 | * It can be disabled in the user preferences. |
3765 | 3772 | * |
3766 | - * @param $title Title object for the page being edited (optional) |
|
3773 | + * @param Title $title Title object for the page being edited (optional) |
|
3767 | 3774 | * @return string |
3768 | 3775 | */ |
3769 | 3776 | static function getEditToolbar( $title = null ) { |
@@ -3903,7 +3910,7 @@ discard block |
||
3903 | 3910 | * @param array $checked Array of checkbox => bool, where bool indicates the checked |
3904 | 3911 | * status of the checkbox |
3905 | 3912 | * |
3906 | - * @return array |
|
3913 | + * @return string |
|
3907 | 3914 | */ |
3908 | 3915 | public function getCheckboxes( &$tabindex, $checked ) { |
3909 | 3916 | global $wgUser, $wgUseMediaWikiUIEverywhere; |
@@ -3967,7 +3974,7 @@ discard block |
||
3967 | 3974 | * |
3968 | 3975 | * @param int $tabindex Current tabindex |
3969 | 3976 | * |
3970 | - * @return array |
|
3977 | + * @return string |
|
3971 | 3978 | */ |
3972 | 3979 | public function getEditButtons( &$tabindex ) { |
3973 | 3980 | $buttons = array(); |