@@ -19,9 +19,6 @@ |
||
19 | 19 | * Like TitleInputWidget, but the namespace has to be input through a separate dropdown field. |
20 | 20 | * |
21 | 21 | * @param array $config Configuration options |
22 | - * @param array $config['namespace'] Configuration for the NamespaceInputWidget dropdown |
|
23 | - * with list of namespaces |
|
24 | - * @param array $config['title'] Configuration for the TitleInputWidget text field |
|
25 | 22 | */ |
26 | 23 | public function __construct( array $config = array() ) { |
27 | 24 | // Configuration initialization |
@@ -16,9 +16,6 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param array $config Configuration options |
19 | - * @param string $config['includeAllValue'] If specified, add a "all namespaces" option to the |
|
20 | - * namespace dropdown, and use this as the input value for it |
|
21 | - * @param number[] $config['exclude'] List of namespace numbers to exclude from the selector |
|
22 | 19 | */ |
23 | 20 | public function __construct( array $config = array() ) { |
24 | 21 | // Configuration initialization |
@@ -20,14 +20,6 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param array $config Configuration options |
23 | - * @param int|null $config['namespace'] Namespace to prepend to queries |
|
24 | - * @param bool|null $config['relative'] If a namespace is set, |
|
25 | - * return a title relative to it (default: true) |
|
26 | - * @param bool|null $config['suggestions'] Display search suggestions (default: true) |
|
27 | - * @param bool|null $config['highlightFirst'] Automatically highlight |
|
28 | - * the first result (default: true) |
|
29 | - * @param bool|null $config['validateTitle'] Whether the input must |
|
30 | - * be a valid title (default: true) |
|
31 | 23 | */ |
32 | 24 | public function __construct( array $config = array() ) { |
33 | 25 | // Parent constructor |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @todo We can give more info than just the wiki id! |
111 | 111 | * @param string $wikiID Wiki'd id (generally database name) |
112 | - * @return string|int Wiki's name or $wiki_id if the wiki was not found |
|
112 | + * @return string|null Wiki's name or $wiki_id if the wiki was not found |
|
113 | 113 | */ |
114 | 114 | public static function getWikiName( $wikiID ) { |
115 | 115 | $wiki = WikiMap::getWiki( $wikiID ); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $page Page name (must be normalised before calling this function!) |
161 | 161 | * @param string|null $fragmentId |
162 | 162 | * |
163 | - * @return string|bool URL or false if the wiki was not found |
|
163 | + * @return string|false URL or false if the wiki was not found |
|
164 | 164 | */ |
165 | 165 | public static function getForeignURL( $wikiID, $page, $fragmentId = null ) { |
166 | 166 | $wiki = WikiMap::getWiki( $wikiID ); |
@@ -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' ) { |