@@ -125,7 +125,7 @@ |
||
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * IE<8 has bugs with <button>, so we'll need to avoid them. |
| 128 | - * @return bool Whether the request is from a bad version of IE |
|
| 128 | + * @return integer Whether the request is from a bad version of IE |
|
| 129 | 129 | */ |
| 130 | 130 | private function isBadIE() { |
| 131 | 131 | $request = $this->mParent |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * mParams['rows'] is an array with row labels as keys and row tags as values. |
| 76 | 76 | * mParams['columns'] is an array with column labels as keys and column tags as values. |
| 77 | 77 | * |
| 78 | - * @param array $value Array of the options that should be checked |
|
| 78 | + * @param string $value Array of the options that should be checked |
|
| 79 | 79 | * |
| 80 | 80 | * @return string |
| 81 | 81 | */ |
@@ -151,6 +151,9 @@ discard block |
||
| 151 | 151 | return $html; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param boolean $checked |
|
| 156 | + */ |
|
| 154 | 157 | protected function getOneCheckbox( $checked, $attribs ) { |
| 155 | 158 | if ( $this->mParent instanceof OOUIHTMLForm ) { |
| 156 | 159 | return new OOUI\CheckboxInputWidget( array( |
@@ -250,7 +250,6 @@ discard block |
||
| 250 | 250 | * Construct a HTMLForm object for given display type. May return a HTMLForm subclass. |
| 251 | 251 | * |
| 252 | 252 | * @param string $displayFormat |
| 253 | - * @param mixed $arguments... Additional arguments to pass to the constructor. |
|
| 254 | 253 | * @return HTMLForm |
| 255 | 254 | */ |
| 256 | 255 | public static function factory( $displayFormat/*, $arguments...*/ ) { |
@@ -1359,7 +1358,7 @@ discard block |
||
| 1359 | 1358 | * this message as its "<legend>" element. |
| 1360 | 1359 | * @since 1.19 |
| 1361 | 1360 | * |
| 1362 | - * @param string|Message $msg Message key or Message object |
|
| 1361 | + * @param string $msg Message key or Message object |
|
| 1363 | 1362 | * |
| 1364 | 1363 | * @return HTMLForm $this for chaining calls (since 1.20) |
| 1365 | 1364 | */ |
@@ -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__ ) { |