@@ -374,7 +374,6 @@ discard block |
||
374 | 374 | * @since 1.17 |
375 | 375 | * |
376 | 376 | * @param string|string[]|MessageSpecifier $key |
377 | - * @param mixed $param,... Parameters as strings. |
|
378 | 377 | * |
379 | 378 | * @return Message |
380 | 379 | */ |
@@ -391,8 +390,6 @@ discard block |
||
391 | 390 | * |
392 | 391 | * @since 1.18 |
393 | 392 | * |
394 | - * @param string|string[] $keys,... Message keys, or first argument as an array of all the |
|
395 | - * message keys. |
|
396 | 393 | * |
397 | 394 | * @return Message |
398 | 395 | */ |
@@ -463,8 +460,6 @@ discard block |
||
463 | 460 | * |
464 | 461 | * @since 1.17 |
465 | 462 | * |
466 | - * @param mixed $params,... Raw parameters as strings, or a single argument that is |
|
467 | - * an array of raw parameters. |
|
468 | 463 | * |
469 | 464 | * @return Message $this |
470 | 465 | */ |
@@ -485,8 +480,6 @@ discard block |
||
485 | 480 | * |
486 | 481 | * @since 1.18 |
487 | 482 | * |
488 | - * @param mixed $param,... Numeric parameters, or a single argument that is |
|
489 | - * an array of numeric parameters. |
|
490 | 483 | * |
491 | 484 | * @return Message $this |
492 | 485 | */ |
@@ -507,8 +500,6 @@ discard block |
||
507 | 500 | * |
508 | 501 | * @since 1.22 |
509 | 502 | * |
510 | - * @param int|int[] $param,... Duration parameters, or a single argument that is |
|
511 | - * an array of duration parameters. |
|
512 | 503 | * |
513 | 504 | * @return Message $this |
514 | 505 | */ |
@@ -529,8 +520,6 @@ discard block |
||
529 | 520 | * |
530 | 521 | * @since 1.22 |
531 | 522 | * |
532 | - * @param string|string[] $param,... Expiry parameters, or a single argument that is |
|
533 | - * an array of expiry parameters. |
|
534 | 523 | * |
535 | 524 | * @return Message $this |
536 | 525 | */ |
@@ -551,8 +540,6 @@ discard block |
||
551 | 540 | * |
552 | 541 | * @since 1.22 |
553 | 542 | * |
554 | - * @param int|int[] $param,... Time period parameters, or a single argument that is |
|
555 | - * an array of time period parameters. |
|
556 | 543 | * |
557 | 544 | * @return Message $this |
558 | 545 | */ |
@@ -573,8 +560,6 @@ discard block |
||
573 | 560 | * |
574 | 561 | * @since 1.22 |
575 | 562 | * |
576 | - * @param int|int[] $param,... Size parameters, or a single argument that is |
|
577 | - * an array of size parameters. |
|
578 | 563 | * |
579 | 564 | * @return Message $this |
580 | 565 | */ |
@@ -595,8 +580,6 @@ discard block |
||
595 | 580 | * |
596 | 581 | * @since 1.22 |
597 | 582 | * |
598 | - * @param int|int[] $param,... Bit rate parameters, or a single argument that is |
|
599 | - * an array of bit rate parameters. |
|
600 | 583 | * |
601 | 584 | * @return Message $this |
602 | 585 | */ |
@@ -619,8 +602,6 @@ discard block |
||
619 | 602 | * |
620 | 603 | * @since 1.25 |
621 | 604 | * |
622 | - * @param string|string[] $param,... plaintext parameters, or a single argument that is |
|
623 | - * an array of plaintext parameters. |
|
624 | 605 | * |
625 | 606 | * @return Message $this |
626 | 607 | */ |
@@ -483,6 +483,9 @@ |
||
483 | 483 | return Html::element( 'input', $realAttrs ); |
484 | 484 | } |
485 | 485 | |
486 | + /** |
|
487 | + * @param string $mode |
|
488 | + */ |
|
486 | 489 | function makeSearchButton( $mode, $attrs = array() ) { |
487 | 490 | switch ( $mode ) { |
488 | 491 | case 'go': |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * |
360 | 360 | * @param Config $baseConfig |
361 | 361 | * |
362 | - * @return Config The config to use during installation. |
|
362 | + * @return null|Config The config to use during installation. |
|
363 | 363 | */ |
364 | 364 | public static function getInstallerConfig( Config $baseConfig ) { |
365 | 365 | $configOverrides = new HashConfig(); |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | * fake password in which case leave it as it is. |
612 | 612 | * |
613 | 613 | * @param string $name |
614 | - * @param mixed $value |
|
614 | + * @param string $value |
|
615 | 615 | */ |
616 | 616 | public function setPassword( $name, $value ) { |
617 | 617 | if ( !preg_match( '/^\*+$/', $value ) ) { |
@@ -1256,7 +1256,7 @@ discard block |
||
1256 | 1256 | * |
1257 | 1257 | * If $versionInfo is not false, only executables with a version |
1258 | 1258 | * matching $versionInfo[1] will be returned. |
1259 | - * @return bool|string |
|
1259 | + * @return string|false |
|
1260 | 1260 | */ |
1261 | 1261 | public static function locateExecutable( $path, $names, $versionInfo = false ) { |
1262 | 1262 | if ( !is_array( $names ) ) { |
@@ -1288,14 +1288,14 @@ discard block |
||
1288 | 1288 | /** |
1289 | 1289 | * Same as locateExecutable(), but checks in getPossibleBinPaths() by default |
1290 | 1290 | * @see locateExecutable() |
1291 | - * @param array $names Array of possible names. |
|
1292 | - * @param array|bool $versionInfo Default: false or array with two members: |
|
1291 | + * @param string[] $names Array of possible names. |
|
1292 | + * @param string[] $versionInfo Default: false or array with two members: |
|
1293 | 1293 | * 0 => Command to run for version check, with $1 for the full executable name |
1294 | 1294 | * 1 => String to compare the output with |
1295 | 1295 | * |
1296 | 1296 | * If $versionInfo is not false, only executables with a version |
1297 | 1297 | * matching $versionInfo[1] will be returned. |
1298 | - * @return bool|string |
|
1298 | + * @return string|false |
|
1299 | 1299 | */ |
1300 | 1300 | public static function locateExecutableInDefaultPaths( $names, $versionInfo = false ) { |
1301 | 1301 | foreach ( self::getPossibleBinPaths() as $path ) { |
@@ -1314,7 +1314,7 @@ discard block |
||
1314 | 1314 | * Used only by environment checks. |
1315 | 1315 | * @param string $dir |
1316 | 1316 | * @param string $url |
1317 | - * @return bool|int|string |
|
1317 | + * @return string|false |
|
1318 | 1318 | */ |
1319 | 1319 | public function dirIsExecutable( $dir, $url ) { |
1320 | 1320 | $scriptTypes = [ |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * given $bootstrapConfig. In particular, all wiring files defined in the |
184 | 184 | * ServiceWiringFiles setting are loaded, and the MediaWikiServices hook is called. |
185 | 185 | * |
186 | - * @param Config|null $bootstrapConfig The Config object to be registered as the |
|
186 | + * @param Config $bootstrapConfig The Config object to be registered as the |
|
187 | 187 | * 'BootstrapConfig' service. This has to contain at least the information |
188 | 188 | * needed to set up the 'ConfigFactory' service. If not provided, any call |
189 | 189 | * to getBootstrapConfig(), getConfigFactory, or getMainConfig will fail. |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * @param WikiPage $article |
60 | 60 | * @param string $hash |
61 | - * @return mixed|string |
|
61 | + * @return string |
|
62 | 62 | */ |
63 | 63 | protected function getParserOutputKey( $article, $hash ) { |
64 | 64 | global $wgRequest; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @param WikiPage $article |
76 | - * @return mixed|string |
|
76 | + * @return string |
|
77 | 77 | */ |
78 | 78 | protected function getOptionsKey( $article ) { |
79 | 79 | $pageid = $article->getId(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param WikiPage $article |
129 | 129 | * @param ParserOptions $popts |
130 | 130 | * @param bool $useOutdated (default true) |
131 | - * @return bool|mixed|string |
|
131 | + * @return false|string |
|
132 | 132 | */ |
133 | 133 | public function getKey( $article, $popts, $useOutdated = true ) { |
134 | 134 | global $wgCacheEpoch; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * Retrieve the ParserOutput from ParserCache. |
181 | 181 | * false if not found or outdated. |
182 | 182 | * |
183 | - * @param WikiPage|Article $article |
|
183 | + * @param WikiPage $article |
|
184 | 184 | * @param ParserOptions $popts |
185 | 185 | * @param bool $useOutdated (default false) |
186 | 186 | * |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | * Way to pass custom data for engines |
98 | 98 | * @since 1.18 |
99 | 99 | * @param string $feature |
100 | - * @param mixed $data |
|
101 | - * @return bool |
|
100 | + * @param boolean $data |
|
101 | + * @return boolean|null |
|
102 | 102 | */ |
103 | 103 | public function setFeatureData( $feature, $data ) { |
104 | 104 | $this->features[$feature] = $data; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | |
296 | 296 | /** |
297 | 297 | * Find snippet highlight settings for all users |
298 | - * @return array Contextlines, contextchars |
|
298 | + * @return integer[] Contextlines, contextchars |
|
299 | 299 | */ |
300 | 300 | public static function userHighlightPrefs() { |
301 | 301 | $contextlines = 2; // Hardcode this. Old defaults sucked. :) |
@@ -501,6 +501,7 @@ discard block |
||
501 | 501 | * Process completion search results. |
502 | 502 | * Resolves the titles and rescores. |
503 | 503 | * @param SearchSuggestionSet $suggestions |
504 | + * @param string $search |
|
504 | 505 | * @return SearchSuggestionSet |
505 | 506 | */ |
506 | 507 | protected function processCompletionResults( $search, SearchSuggestionSet $suggestions ) { |
@@ -584,7 +585,7 @@ discard block |
||
584 | 585 | * settings, returning a list of index numbers. |
585 | 586 | * @deprecated since 1.27; use SearchEngineConfig::userNamespaces() |
586 | 587 | * @param user $user |
587 | - * @return array |
|
588 | + * @return integer[] |
|
588 | 589 | */ |
589 | 590 | public static function userNamespaces( $user ) { |
590 | 591 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user ); |
@@ -593,7 +594,7 @@ discard block |
||
593 | 594 | /** |
594 | 595 | * An array of namespaces indexes to be searched by default |
595 | 596 | * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces() |
596 | - * @return array |
|
597 | + * @return integer[] |
|
597 | 598 | */ |
598 | 599 | public static function defaultNamespaces() { |
599 | 600 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces(); |
@@ -604,7 +605,7 @@ discard block |
||
604 | 605 | * and preferences |
605 | 606 | * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText() |
606 | 607 | * @param array $namespaces |
607 | - * @return array |
|
608 | + * @return string[] |
|
608 | 609 | */ |
609 | 610 | public static function namespacesAsText( $namespaces ) { |
610 | 611 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces ); |
@@ -234,7 +234,7 @@ |
||
234 | 234 | * If the user has already been blocked with similar settings, load that block |
235 | 235 | * and change the defaults for the form fields to match the existing settings. |
236 | 236 | * @param array $fields HTMLForm descriptor array |
237 | - * @return bool Whether fields were altered (that is, whether the target is |
|
237 | + * @return boolean|null Whether fields were altered (that is, whether the target is |
|
238 | 238 | * already blocked) |
239 | 239 | */ |
240 | 240 | protected function maybeAlterFormDefaults( &$fields ) { |