@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * @param string $inLanguage The ISO code of the language to display the select list in (optional) |
200 | 200 | * @param array $overrideAttrs Override the attributes of the select tag (since 1.20) |
201 | 201 | * @param Message|null $msg Label message key (since 1.20) |
202 | - * @return array Array containing 2 items: label HTML and select list HTML |
|
202 | + * @return string[] Array containing 2 items: label HTML and select list HTML |
|
203 | 203 | */ |
204 | 204 | public static function languageSelector( $selected, $customisedOnly = true, |
205 | 205 | $inLanguage = null, $overrideAttrs = array(), Message $msg = null |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | * @param string $label Text of the label |
374 | 374 | * @param string $name Value of the name attribute |
375 | 375 | * @param string $id Id of the input |
376 | - * @param int|bool $size Value of the size attribute |
|
376 | + * @param integer $size Value of the size attribute |
|
377 | 377 | * @param string|bool $value Value of the value attribute |
378 | 378 | * @param array $attribs Other attributes |
379 | 379 | * @return string HTML |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | * @param string|bool $value |
396 | 396 | * @param array $attribs |
397 | 397 | * |
398 | - * @return array |
|
398 | + * @return string[] |
|
399 | 399 | */ |
400 | 400 | public static function inputLabelSep( $label, $name, $id, $size = false, |
401 | 401 | $value = false, $attribs = array() |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | * which evaluates to a function object which is called. |
678 | 678 | * @param array $args The arguments to pass to the function. |
679 | 679 | * @param bool $pretty If true, add non-significant whitespace to improve readability. |
680 | - * @return string|bool String if successful; false upon failure |
|
680 | + * @return false|string String if successful; false upon failure |
|
681 | 681 | */ |
682 | 682 | public static function encodeJsCall( $name, $args, $pretty = false ) { |
683 | 683 | foreach ( $args as &$arg ) { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @param string|array $tagName |
|
54 | + * @param string $tagName |
|
55 | 55 | */ |
56 | 56 | public function setTagName( $tagName ) { |
57 | 57 | $this->tagName = $tagName; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @param Language $langobj |
45 | 45 | * @param string $maincode |
46 | - * @param array $variants |
|
46 | + * @param string[] $variants |
|
47 | 47 | * @param array $variantfallbacks |
48 | 48 | * @param array $flags |
49 | 49 | */ |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | /** |
323 | 323 | * @param string $text |
324 | 324 | * @param string $toVariant |
325 | - * @return mixed|string |
|
325 | + * @return string|null |
|
326 | 326 | */ |
327 | 327 | function regsConverter( $text, $toVariant ) { |
328 | 328 | if ( $text == '' ) { |
@@ -738,7 +738,7 @@ |
||
738 | 738 | |
739 | 739 | /** |
740 | 740 | * @param string $word |
741 | - * @param array $allVowels |
|
741 | + * @param string[] $allVowels |
|
742 | 742 | * @return array |
743 | 743 | */ |
744 | 744 | function lastLetter( $word, $allVowels ) { |
@@ -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' ) { |
@@ -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 |
@@ -466,7 +466,7 @@ |
||
466 | 466 | |
467 | 467 | /** |
468 | 468 | * Get converted title. |
469 | - * @return string |
|
469 | + * @return boolean |
|
470 | 470 | */ |
471 | 471 | public function getTitle() { |
472 | 472 | return $this->mRuleTitle; |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public $mLang; |
34 | 34 | |
35 | + /** |
|
36 | + * @param Language $langobj |
|
37 | + */ |
|
35 | 38 | function __construct( $langobj ) { |
36 | 39 | $this->mLang = $langobj; |
37 | 40 | } |
@@ -54,7 +57,7 @@ discard block |
||
54 | 57 | |
55 | 58 | /** |
56 | 59 | * @param Title $t |
57 | - * @return mixed |
|
60 | + * @return string |
|
58 | 61 | */ |
59 | 62 | function convertTitle( $t ) { |
60 | 63 | return $t->getPrefixedText(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | |
146 | 146 | /** |
147 | 147 | * Get the title produced by the conversion rule. |
148 | - * @return string The converted title text |
|
148 | + * @return boolean The converted title text |
|
149 | 149 | */ |
150 | 150 | public function getConvRuleTitle() { |
151 | 151 | return $this->mConvRuleTitle; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | /** |
208 | 208 | * Validate the variant |
209 | 209 | * @param string $variant The variant to validate |
210 | - * @return mixed Returns the variant if it is valid, null otherwise |
|
210 | + * @return string|null Returns the variant if it is valid, null otherwise |
|
211 | 211 | */ |
212 | 212 | public function validateVariant( $variant = null ) { |
213 | 213 | if ( $variant !== null && in_array( $variant, $this->mVariants ) ) { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Get the variant specified in the URL |
221 | 221 | * |
222 | - * @return mixed Variant if one found, false otherwise. |
|
222 | + * @return string|null Variant if one found, false otherwise. |
|
223 | 223 | */ |
224 | 224 | public function getURLVariant() { |
225 | 225 | global $wgRequest; |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | /** |
243 | 243 | * Determine if the user has a variant set. |
244 | 244 | * |
245 | - * @return mixed Variant if one found, false otherwise. |
|
245 | + * @return string|null Variant if one found, false otherwise. |
|
246 | 246 | */ |
247 | 247 | protected function getUserVariant() { |
248 | 248 | global $wgUser, $wgContLang; |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | /** |
277 | 277 | * Determine the language variant from the Accept-Language header. |
278 | 278 | * |
279 | - * @return mixed Variant if one found, false otherwise. |
|
279 | + * @return string|null Variant if one found, false otherwise. |
|
280 | 280 | */ |
281 | 281 | protected function getHeaderVariant() { |
282 | 282 | global $wgRequest; |