@@ -84,7 +84,7 @@ |
||
84 | 84 | * Get a key on the primary cache for this repository. |
85 | 85 | * Returns false if the repository's cache is not accessible at this site. |
86 | 86 | * The parameters are the parts of the key, as for wfMemcKey(). |
87 | - * @return bool|string |
|
87 | + * @return string|false |
|
88 | 88 | */ |
89 | 89 | function getSharedCacheKey( /*...*/ ) { |
90 | 90 | if ( $this->hasSharedCache() ) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * Search repositories for an image. |
106 | 106 | * You can also use wfFindFile() to do this. |
107 | 107 | * |
108 | - * @param Title|string $title Title object or string |
|
108 | + * @param string $title Title object or string |
|
109 | 109 | * @param array $options Associative array of options: |
110 | 110 | * time: requested time for an archived image, or false for the |
111 | 111 | * current version. An image object will be returned which was |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | /** |
316 | 316 | * Get the repo instance with a given key. |
317 | 317 | * @param string|int $index |
318 | - * @return bool|LocalRepo |
|
318 | + * @return string |
|
319 | 319 | */ |
320 | 320 | function getRepo( $index ) { |
321 | 321 | if ( !$this->reposInitialised ) { |
@@ -52,6 +52,9 @@ |
||
52 | 52 | */ |
53 | 53 | const RESTART_ON_ERROR = 1; |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $numProcs |
|
57 | + */ |
|
55 | 58 | public function __construct( $numProcs, $flags = 0 ) { |
56 | 59 | if ( PHP_SAPI != 'cli' ) { |
57 | 60 | throw new MWException( "ForkController cannot be used from the web." ); |
@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Add javascript which auto-justifies the rows by manipulating the image sizes. |
97 | 97 | * Also ensures that the hover version of this degrades gracefully. |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | protected function getModules() { |
101 | 101 | return array( 'mediawiki.page.gallery' ); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | /** |
251 | 251 | * Get an URL to a web viewer link to the HEAD revision. |
252 | 252 | * |
253 | - * @return string|bool String if a URL is available or false otherwise |
|
253 | + * @return false|string String if a URL is available or false otherwise |
|
254 | 254 | */ |
255 | 255 | public function getHeadViewUrl() { |
256 | 256 | $url = $this->getRemoteUrl(); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | |
382 | 382 | /** |
383 | 383 | * @see self::getHeadViewUrl() |
384 | - * @return bool|string |
|
384 | + * @return false|string |
|
385 | 385 | */ |
386 | 386 | public static function headViewUrl() { |
387 | 387 | return self::repo()->getHeadViewUrl(); |
@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * @codeCoverageIgnore |
45 | 45 | * @see Fallback::mb_substr |
46 | + * @param integer $start |
|
46 | 47 | * @return string |
47 | 48 | */ |
48 | 49 | function mb_substr( $str, $start, $count = 'end' ) { |
@@ -85,7 +86,7 @@ discard block |
||
85 | 86 | /** |
86 | 87 | * @codeCoverageIgnore |
87 | 88 | * @see Fallback::mb_strrpos |
88 | - * @return int |
|
89 | + * @return string|false |
|
89 | 90 | */ |
90 | 91 | function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) { |
91 | 92 | return Fallback::mb_strrpos( $haystack, $needle, $offset, $encoding ); |
@@ -301,7 +302,6 @@ discard block |
||
301 | 302 | * array( 'y' ) |
302 | 303 | * ) |
303 | 304 | * |
304 | - * @param array $array1,... |
|
305 | 305 | * @return array |
306 | 306 | */ |
307 | 307 | function wfMergeErrorArrays( /*...*/ ) { |
@@ -1353,7 +1353,7 @@ discard block |
||
1353 | 1353 | /** |
1354 | 1354 | * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile. |
1355 | 1355 | * |
1356 | - * @return string|bool String when in read-only mode; false otherwise |
|
1356 | + * @return string|false String when in read-only mode; false otherwise |
|
1357 | 1357 | * @since 1.27 |
1358 | 1358 | */ |
1359 | 1359 | function wfConfiguredReadOnlyReason() { |
@@ -1428,7 +1428,6 @@ discard block |
||
1428 | 1428 | * This function replaces all old wfMsg* functions. |
1429 | 1429 | * |
1430 | 1430 | * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier |
1431 | - * @param mixed $params,... Normal message parameters |
|
1432 | 1431 | * @return Message |
1433 | 1432 | * |
1434 | 1433 | * @since 1.17 |
@@ -1449,7 +1448,6 @@ discard block |
||
1449 | 1448 | * for the first message which is non-empty. If all messages are empty then an |
1450 | 1449 | * instance of the first message key is returned. |
1451 | 1450 | * |
1452 | - * @param string|string[] $keys,... Message keys |
|
1453 | 1451 | * @return Message |
1454 | 1452 | * |
1455 | 1453 | * @since 1.18 |
@@ -1680,7 +1678,7 @@ discard block |
||
1680 | 1678 | * @todo FIXME: We may want to blacklist some broken browsers |
1681 | 1679 | * |
1682 | 1680 | * @param bool $force |
1683 | - * @return bool Whereas client accept gzip compression |
|
1681 | + * @return null|boolean Whereas client accept gzip compression |
|
1684 | 1682 | */ |
1685 | 1683 | function wfClientAcceptsGzip( $force = false ) { |
1686 | 1684 | static $result = null; |
@@ -1816,7 +1814,7 @@ discard block |
||
1816 | 1814 | /** |
1817 | 1815 | * Provide a simple HTTP error. |
1818 | 1816 | * |
1819 | - * @param int|string $code |
|
1817 | + * @param integer $code |
|
1820 | 1818 | * @param string $label |
1821 | 1819 | * @param string $desc |
1822 | 1820 | */ |
@@ -2098,8 +2096,8 @@ discard block |
||
2098 | 2096 | * |
2099 | 2097 | * @param mixed $outputtype A timestamp in one of the supported formats, the |
2100 | 2098 | * function will autodetect which format is supplied and act accordingly. |
2101 | - * @param mixed $ts Optional timestamp to convert, default 0 for the current time |
|
2102 | - * @return string|bool String / false The same date in the format specified in $outputtype or false |
|
2099 | + * @param integer $ts Optional timestamp to convert, default 0 for the current time |
|
2100 | + * @return string|false String / false The same date in the format specified in $outputtype or false |
|
2103 | 2101 | */ |
2104 | 2102 | function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) { |
2105 | 2103 | try { |
@@ -2140,7 +2138,7 @@ discard block |
||
2140 | 2138 | /** |
2141 | 2139 | * Check if the operating system is Windows |
2142 | 2140 | * |
2143 | - * @return bool True if it's Windows, false otherwise. |
|
2141 | + * @return boolean|null True if it's Windows, false otherwise. |
|
2144 | 2142 | */ |
2145 | 2143 | function wfIsWindows() { |
2146 | 2144 | static $isWindows = null; |
@@ -2376,7 +2374,7 @@ discard block |
||
2376 | 2374 | /** |
2377 | 2375 | * Check if wfShellExec() is effectively disabled via php.ini config |
2378 | 2376 | * |
2379 | - * @return bool|string False or one of (safemode,disabled) |
|
2377 | + * @return string|false False or one of (safemode,disabled) |
|
2380 | 2378 | * @since 1.22 |
2381 | 2379 | */ |
2382 | 2380 | function wfShellExecDisabled() { |
@@ -2997,7 +2995,7 @@ discard block |
||
2997 | 2995 | * @param int $pad Minimum number of digits in the output (pad with zeroes) |
2998 | 2996 | * @param bool $lowercase Whether to output in lowercase or uppercase |
2999 | 2997 | * @param string $engine Either "gmp", "bcmath", or "php" |
3000 | - * @return string|bool The output number as a string, or false on error |
|
2998 | + * @return false|string The output number as a string, or false on error |
|
3001 | 2999 | */ |
3002 | 3000 | function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, |
3003 | 3001 | $lowercase = true, $engine = 'auto' |
@@ -3105,7 +3103,6 @@ discard block |
||
3105 | 3103 | /** |
3106 | 3104 | * Make a cache key for the local wiki. |
3107 | 3105 | * |
3108 | - * @param string $args,... |
|
3109 | 3106 | * @return string |
3110 | 3107 | */ |
3111 | 3108 | function wfMemcKey( /*...*/ ) { |
@@ -3122,7 +3119,6 @@ discard block |
||
3122 | 3119 | * |
3123 | 3120 | * @param string $db |
3124 | 3121 | * @param string $prefix |
3125 | - * @param string $args,... |
|
3126 | 3122 | * @return string |
3127 | 3123 | */ |
3128 | 3124 | function wfForeignMemcKey( $db, $prefix /*...*/ ) { |
@@ -3142,7 +3138,6 @@ discard block |
||
3142 | 3138 | * in the first segment will clash with wfMemcKey/wfForeignMemcKey. |
3143 | 3139 | * |
3144 | 3140 | * @since 1.26 |
3145 | - * @param string $args,... |
|
3146 | 3141 | * @return string |
3147 | 3142 | */ |
3148 | 3143 | function wfGlobalCacheKey( /*...*/ ) { |
@@ -3244,7 +3239,7 @@ discard block |
||
3244 | 3239 | * Returns a valid placeholder object if the file does not exist. |
3245 | 3240 | * |
3246 | 3241 | * @param Title|string $title |
3247 | - * @return LocalFile|null A File, or null if passed an invalid Title |
|
3242 | + * @return File|null A File, or null if passed an invalid Title |
|
3248 | 3243 | */ |
3249 | 3244 | function wfLocalFile( $title ) { |
3250 | 3245 | return RepoGroup::singleton()->getLocalRepo()->newFile( $title ); |
@@ -3468,7 +3463,7 @@ discard block |
||
3468 | 3463 | /** |
3469 | 3464 | * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit |
3470 | 3465 | * |
3471 | - * @return int Prior time limit |
|
3466 | + * @return string Prior time limit |
|
3472 | 3467 | * @since 1.26 |
3473 | 3468 | */ |
3474 | 3469 | function wfTransactionalTimeLimit() { |
@@ -3604,7 +3599,7 @@ discard block |
||
3604 | 3599 | * |
3605 | 3600 | * @param string $format The format string (See php's docs) |
3606 | 3601 | * @param string $data A binary string of binary data |
3607 | - * @param int|bool $length The minimum length of $data or false. This is to |
|
3602 | + * @param integer $length The minimum length of $data or false. This is to |
|
3608 | 3603 | * prevent reading beyond the end of $data. false to disable the check. |
3609 | 3604 | * |
3610 | 3605 | * Also be careful when using this function to read unsigned 32 bit integer |
@@ -55,6 +55,7 @@ discard block |
||
55 | 55 | * Default text is not required for two-part external storage URLs. |
56 | 56 | * |
57 | 57 | * @param string $text |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | function setText( $text ); |
60 | 61 | |
@@ -161,7 +162,7 @@ discard block |
||
161 | 162 | } |
162 | 163 | |
163 | 164 | /** |
164 | - * @return array |
|
165 | + * @return string[] |
|
165 | 166 | */ |
166 | 167 | function __sleep() { |
167 | 168 | $this->compress(); |
@@ -531,7 +532,7 @@ discard block |
||
531 | 532 | /** |
532 | 533 | * @param string $base |
533 | 534 | * @param string $diff |
534 | - * @return bool|string |
|
535 | + * @return string|false |
|
535 | 536 | */ |
536 | 537 | function patch( $base, $diff ) { |
537 | 538 | if ( function_exists( 'xdiff_string_bpatch' ) ) { |
@@ -593,7 +594,7 @@ discard block |
||
593 | 594 | * the bytes backwards and initialised with 0 instead of 1. See bug 34428. |
594 | 595 | * |
595 | 596 | * @param string $s |
596 | - * @return string|bool False if the hash extension is not available |
|
597 | + * @return false|string False if the hash extension is not available |
|
597 | 598 | */ |
598 | 599 | function xdiffAdler32( $s ) { |
599 | 600 | if ( !function_exists( 'hash' ) ) { |
@@ -626,7 +627,7 @@ discard block |
||
626 | 627 | } |
627 | 628 | |
628 | 629 | /** |
629 | - * @return array |
|
630 | + * @return string[] |
|
630 | 631 | */ |
631 | 632 | function __sleep() { |
632 | 633 | $this->compress(); |
@@ -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( |