@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * Updates the AutoloadClasses field at the given |
123 | 123 | * filename. |
124 | 124 | * |
125 | - * @param {string} $filename Filename of JSON |
|
125 | + * @param string $filename Filename of JSON |
|
126 | 126 | * extension/skin registration file |
127 | 127 | */ |
128 | 128 | protected function generateJsonAutoload( $filename ) { |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Generates a PHP file setting up autoload information. |
159 | 159 | * |
160 | - * @param {string} $commandName Command name to include in comment |
|
161 | - * @param {string} $filename of PHP file to put autoload information in. |
|
160 | + * @param string $commandName Command name to include in comment |
|
161 | + * @param string $filename of PHP file to put autoload information in. |
|
162 | 162 | */ |
163 | 163 | protected function generatePHPAutoload( $commandName, $filename ) { |
164 | 164 | // No existing JSON file found; update/generate PHP file |
@@ -278,6 +278,7 @@ discard block |
||
278 | 278 | |
279 | 279 | /** |
280 | 280 | * @var string $code PHP code (including <?php) to detect class names from |
281 | + * @param string $code |
|
281 | 282 | * @return array List of FQCN detected within the tokens |
282 | 283 | */ |
283 | 284 | public function getClasses( $code ) { |
@@ -235,7 +235,6 @@ discard block |
||
235 | 235 | * array( 'y' ) |
236 | 236 | * ) |
237 | 237 | * |
238 | - * @param array $array1,... |
|
239 | 238 | * @return array |
240 | 239 | */ |
241 | 240 | function wfMergeErrorArrays( /*...*/ ) { |
@@ -1287,7 +1286,7 @@ discard block |
||
1287 | 1286 | /** |
1288 | 1287 | * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile. |
1289 | 1288 | * |
1290 | - * @return string|bool String when in read-only mode; false otherwise |
|
1289 | + * @return string|false String when in read-only mode; false otherwise |
|
1291 | 1290 | * @since 1.27 |
1292 | 1291 | */ |
1293 | 1292 | function wfConfiguredReadOnlyReason() { |
@@ -1362,7 +1361,6 @@ discard block |
||
1362 | 1361 | * This function replaces all old wfMsg* functions. |
1363 | 1362 | * |
1364 | 1363 | * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier |
1365 | - * @param mixed $params,... Normal message parameters |
|
1366 | 1364 | * @return Message |
1367 | 1365 | * |
1368 | 1366 | * @since 1.17 |
@@ -1383,7 +1381,6 @@ discard block |
||
1383 | 1381 | * for the first message which is non-empty. If all messages are empty then an |
1384 | 1382 | * instance of the first message key is returned. |
1385 | 1383 | * |
1386 | - * @param string|string[] $keys,... Message keys |
|
1387 | 1384 | * @return Message |
1388 | 1385 | * |
1389 | 1386 | * @since 1.18 |
@@ -1614,7 +1611,7 @@ discard block |
||
1614 | 1611 | * @todo FIXME: We may want to blacklist some broken browsers |
1615 | 1612 | * |
1616 | 1613 | * @param bool $force |
1617 | - * @return bool Whereas client accept gzip compression |
|
1614 | + * @return null|boolean Whereas client accept gzip compression |
|
1618 | 1615 | */ |
1619 | 1616 | function wfClientAcceptsGzip( $force = false ) { |
1620 | 1617 | static $result = null; |
@@ -1750,7 +1747,7 @@ discard block |
||
1750 | 1747 | /** |
1751 | 1748 | * Provide a simple HTTP error. |
1752 | 1749 | * |
1753 | - * @param int|string $code |
|
1750 | + * @param integer $code |
|
1754 | 1751 | * @param string $label |
1755 | 1752 | * @param string $desc |
1756 | 1753 | */ |
@@ -2032,8 +2029,8 @@ discard block |
||
2032 | 2029 | * |
2033 | 2030 | * @param mixed $outputtype A timestamp in one of the supported formats, the |
2034 | 2031 | * function will autodetect which format is supplied and act accordingly. |
2035 | - * @param mixed $ts Optional timestamp to convert, default 0 for the current time |
|
2036 | - * @return string|bool String / false The same date in the format specified in $outputtype or false |
|
2032 | + * @param integer $ts Optional timestamp to convert, default 0 for the current time |
|
2033 | + * @return string|false String / false The same date in the format specified in $outputtype or false |
|
2037 | 2034 | */ |
2038 | 2035 | function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) { |
2039 | 2036 | try { |
@@ -2074,7 +2071,7 @@ discard block |
||
2074 | 2071 | /** |
2075 | 2072 | * Check if the operating system is Windows |
2076 | 2073 | * |
2077 | - * @return bool True if it's Windows, false otherwise. |
|
2074 | + * @return boolean|null True if it's Windows, false otherwise. |
|
2078 | 2075 | */ |
2079 | 2076 | function wfIsWindows() { |
2080 | 2077 | static $isWindows = null; |
@@ -2313,7 +2310,7 @@ discard block |
||
2313 | 2310 | /** |
2314 | 2311 | * Check if wfShellExec() is effectively disabled via php.ini config |
2315 | 2312 | * |
2316 | - * @return bool|string False or 'disabled' |
|
2313 | + * @return string|false False or 'disabled' |
|
2317 | 2314 | * @since 1.22 |
2318 | 2315 | */ |
2319 | 2316 | function wfShellExecDisabled() { |
@@ -2927,7 +2924,7 @@ discard block |
||
2927 | 2924 | * @param int $pad Minimum number of digits in the output (pad with zeroes) |
2928 | 2925 | * @param bool $lowercase Whether to output in lowercase or uppercase |
2929 | 2926 | * @param string $engine Either "gmp", "bcmath", or "php" |
2930 | - * @return string|bool The output number as a string, or false on error |
|
2927 | + * @return false|string The output number as a string, or false on error |
|
2931 | 2928 | */ |
2932 | 2929 | function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, |
2933 | 2930 | $lowercase = true, $engine = 'auto' |
@@ -3012,7 +3009,6 @@ discard block |
||
3012 | 3009 | /** |
3013 | 3010 | * Make a cache key for the local wiki. |
3014 | 3011 | * |
3015 | - * @param string $args,... |
|
3016 | 3012 | * @return string |
3017 | 3013 | */ |
3018 | 3014 | function wfMemcKey( /*...*/ ) { |
@@ -3029,7 +3025,6 @@ discard block |
||
3029 | 3025 | * |
3030 | 3026 | * @param string $db |
3031 | 3027 | * @param string $prefix |
3032 | - * @param string $args,... |
|
3033 | 3028 | * @return string |
3034 | 3029 | */ |
3035 | 3030 | function wfForeignMemcKey( $db, $prefix /*...*/ ) { |
@@ -3049,7 +3044,6 @@ discard block |
||
3049 | 3044 | * in the first segment will clash with wfMemcKey/wfForeignMemcKey. |
3050 | 3045 | * |
3051 | 3046 | * @since 1.26 |
3052 | - * @param string $args,... |
|
3053 | 3047 | * @return string |
3054 | 3048 | */ |
3055 | 3049 | function wfGlobalCacheKey( /*...*/ ) { |
@@ -3151,7 +3145,7 @@ discard block |
||
3151 | 3145 | * Returns a valid placeholder object if the file does not exist. |
3152 | 3146 | * |
3153 | 3147 | * @param Title|string $title |
3154 | - * @return LocalFile|null A File, or null if passed an invalid Title |
|
3148 | + * @return File|null A File, or null if passed an invalid Title |
|
3155 | 3149 | */ |
3156 | 3150 | function wfLocalFile( $title ) { |
3157 | 3151 | return RepoGroup::singleton()->getLocalRepo()->newFile( $title ); |
@@ -3355,7 +3349,7 @@ discard block |
||
3355 | 3349 | /** |
3356 | 3350 | * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit |
3357 | 3351 | * |
3358 | - * @return int Prior time limit |
|
3352 | + * @return string Prior time limit |
|
3359 | 3353 | * @since 1.26 |
3360 | 3354 | */ |
3361 | 3355 | function wfTransactionalTimeLimit() { |
@@ -3491,7 +3485,7 @@ discard block |
||
3491 | 3485 | * |
3492 | 3486 | * @param string $format The format string (See php's docs) |
3493 | 3487 | * @param string $data A binary string of binary data |
3494 | - * @param int|bool $length The minimum length of $data or false. This is to |
|
3488 | + * @param integer $length The minimum length of $data or false. This is to |
|
3495 | 3489 | * prevent reading beyond the end of $data. false to disable the check. |
3496 | 3490 | * |
3497 | 3491 | * Also be careful when using this function to read unsigned 32 bit integer |
@@ -112,6 +112,9 @@ |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @return string |
|
117 | + */ |
|
115 | 118 | function stripParameters( $text ) { |
116 | 119 | if ( !$this->stripParametersEnabled ) { |
117 | 120 | return $text; |
@@ -30,6 +30,9 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $name |
|
35 | + */ |
|
33 | 36 | function __call( $name, array $arguments ) { |
34 | 37 | if ( $this->conn === null ) { |
35 | 38 | list( $db, $groups, $wiki ) = $this->params; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param array $data Array of *non*-urlencoded key => value pairs, the |
40 | 40 | * fake GET/POST values |
41 | 41 | * @param bool $wasPosted Whether to treat the data as POST |
42 | - * @param MediaWiki\Session\Session|array|null $session Session, session |
|
42 | + * @param MediaWiki\Session\Session|null $session Session, session |
|
43 | 43 | * data array, or null |
44 | 44 | * @param string $protocol 'http' or 'https' |
45 | 45 | * @throws MWException |
@@ -126,7 +126,6 @@ discard block |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * @since 1.26 |
129 | - * @param string $name Unprefixed name of the cookie to set |
|
130 | 129 | * @param string|null $value Value of the cookie to set |
131 | 130 | * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix |
132 | 131 | */ |
@@ -152,6 +151,7 @@ discard block |
||
152 | 151 | |
153 | 152 | /** |
154 | 153 | * @since 1.25 |
154 | + * @param string $url |
|
155 | 155 | */ |
156 | 156 | public function setRequestURL( $url ) { |
157 | 157 | $this->requestUrl = $url; |