@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * Defaults to false, which getOOUI will interpret as "use the HTML version" |
50 | 50 | * |
51 | 51 | * @param string $value |
52 | - * @return OOUI\Widget|false |
|
52 | + * @return boolean |
|
53 | 53 | */ |
54 | 54 | function getInputOOUI( $value ) { |
55 | 55 | return false; |
@@ -318,6 +318,9 @@ discard block |
||
318 | 318 | return true; |
319 | 319 | } |
320 | 320 | |
321 | + /** |
|
322 | + * @param HTMLFormField[] $alldata |
|
323 | + */ |
|
321 | 324 | function filter( $value, $alldata ) { |
322 | 325 | if ( isset( $this->mFilterCallback ) ) { |
323 | 326 | $value = call_user_func( $this->mFilterCallback, $value, $alldata, $this->mParent ); |
@@ -803,7 +806,7 @@ discard block |
||
803 | 806 | * @since 1.20 |
804 | 807 | * |
805 | 808 | * @param string $value The value of the input |
806 | - * @return array array( $errors, $errorClass ) |
|
809 | + * @return string[] array( $errors, $errorClass ) |
|
807 | 810 | */ |
808 | 811 | public function getErrorsAndErrorClass( $value ) { |
809 | 812 | $errors = $this->validate( $value, $this->mParent->mFieldData ); |
@@ -891,6 +894,9 @@ discard block |
||
891 | 894 | return $html; |
892 | 895 | } |
893 | 896 | |
897 | + /** |
|
898 | + * @return string |
|
899 | + */ |
|
894 | 900 | function getDefault() { |
895 | 901 | if ( isset( $this->mDefault ) ) { |
896 | 902 | return $this->mDefault; |
@@ -1086,7 +1092,7 @@ discard block |
||
1086 | 1092 | /** |
1087 | 1093 | * Formats one or more errors as accepted by field validation-callback. |
1088 | 1094 | * |
1089 | - * @param string|Message|array $errors Array of strings or Message instances |
|
1095 | + * @param string $errors Array of strings or Message instances |
|
1090 | 1096 | * @return string HTML |
1091 | 1097 | * @since 1.18 |
1092 | 1098 | */ |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return $html; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param boolean $checked |
|
68 | + */ |
|
66 | 69 | protected function getOneCheckbox( $checked, $attribs, $label ) { |
67 | 70 | if ( $this->mParent instanceof OOUIHTMLForm ) { |
68 | 71 | if ( $this->mOptionsLabelsNotFromMessage ) { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | ) + $this->getAttributes( array( 'disabled', 'tabindex' ), array( 'tabindex' => 'tabIndex' ) ) ); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $value |
|
60 | + */ |
|
58 | 61 | function formatOptions( $options, $value ) { |
59 | 62 | $html = ''; |
60 | 63 |
@@ -155,7 +155,7 @@ |
||
155 | 155 | * @param OOUI\FieldLayout[] $fieldsHtml |
156 | 156 | * @param string $sectionName |
157 | 157 | * @param bool $anyFieldHasLabel Unused |
158 | - * @return string HTML |
|
158 | + * @return OOUI\FieldsetLayout HTML |
|
159 | 159 | */ |
160 | 160 | protected function formatSection( array $fieldsHtml, $sectionName, $anyFieldHasLabel ) { |
161 | 161 | $config = array( |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Note this interface may fail in surprising unexpected ways due to usage of regexes, |
121 | 121 | * so should not be relied on for HTML markup security measures. |
122 | 122 | * |
123 | - * @param array|string $elements Name(s) of tag(s) to flatten |
|
123 | + * @param string $elements Name(s) of tag(s) to flatten |
|
124 | 124 | */ |
125 | 125 | public function flatten( $elements ) { |
126 | 126 | $this->elementsToFlatten = array_merge( $this->elementsToFlatten, (array)$elements ); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @todo FIXME this is wildly inaccurate and fails to actually check most stuff |
187 | 187 | * |
188 | 188 | * @param string $uri URI to check for validity |
189 | - * @return bool |
|
189 | + * @return integer |
|
190 | 190 | */ |
191 | 191 | public static function isValidURI( $uri ) { |
192 | 192 | return preg_match( |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * @param array $options (optional) extra params to pass (see Http::request()) |
318 | 318 | * @param string $caller The method making this request, for profiling |
319 | 319 | * @throws MWException |
320 | - * @return CurlHttpRequest|PhpHttpRequest |
|
320 | + * @return string |
|
321 | 321 | * @see MWHttpRequest::__construct |
322 | 322 | */ |
323 | 323 | public static function factory( $url, $options = null, $caller = __METHOD__ ) { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return mixed |
|
114 | + * @return integer |
|
115 | 115 | */ |
116 | 116 | function stream_tell() { |
117 | 117 | return $this->mPosition; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return null|XMLReader |
|
98 | + * @return XMLReader |
|
99 | 99 | */ |
100 | 100 | public function getReader() { |
101 | 101 | return $this->reader; |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | wfDebug( "IMPORT: $data\n" ); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $msg |
|
121 | + */ |
|
119 | 122 | public function notice( $msg /*, $param, ...*/ ) { |
120 | 123 | $params = func_get_args(); |
121 | 124 | array_shift( $params ); |
@@ -384,14 +384,14 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
387 | - * @return mixed |
|
387 | + * @return string |
|
388 | 388 | */ |
389 | 389 | function getSrc() { |
390 | 390 | return $this->src; |
391 | 391 | } |
392 | 392 | |
393 | 393 | /** |
394 | - * @return bool|string |
|
394 | + * @return false|string |
|
395 | 395 | */ |
396 | 396 | function getSha1() { |
397 | 397 | if ( $this->sha1base36 ) { |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | } |
416 | 416 | |
417 | 417 | /** |
418 | - * @return mixed |
|
418 | + * @return string |
|
419 | 419 | */ |
420 | 420 | function getFilename() { |
421 | 421 | return $this->filename; |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | } |
430 | 430 | |
431 | 431 | /** |
432 | - * @return mixed |
|
432 | + * @return integer |
|
433 | 433 | */ |
434 | 434 | function getSize() { |
435 | 435 | return $this->size; |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | } |
682 | 682 | |
683 | 683 | /** |
684 | - * @return bool|string |
|
684 | + * @return false|string |
|
685 | 685 | */ |
686 | 686 | function downloadSource() { |
687 | 687 | if ( !$this->config->get( 'EnableUploads' ) ) { |