@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @since 1.18 |
105 | 105 | * @param string $feature |
106 | 106 | * @param mixed $data |
107 | - * @return bool |
|
107 | + * @return boolean|null |
|
108 | 108 | */ |
109 | 109 | public function setFeatureData( $feature, $data ) { |
110 | 110 | $this->features[$feature] = $data; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | /** |
303 | 303 | * Find snippet highlight settings for all users |
304 | - * @return array Contextlines, contextchars |
|
304 | + * @return integer[] Contextlines, contextchars |
|
305 | 305 | */ |
306 | 306 | public static function userHighlightPrefs() { |
307 | 307 | $contextlines = 2; // Hardcode this. Old defaults sucked. :) |
@@ -507,6 +507,7 @@ discard block |
||
507 | 507 | * Process completion search results. |
508 | 508 | * Resolves the titles and rescores. |
509 | 509 | * @param SearchSuggestionSet $suggestions |
510 | + * @param string $search |
|
510 | 511 | * @return SearchSuggestionSet |
511 | 512 | */ |
512 | 513 | protected function processCompletionResults( $search, SearchSuggestionSet $suggestions ) { |
@@ -590,7 +591,7 @@ discard block |
||
590 | 591 | * settings, returning a list of index numbers. |
591 | 592 | * @deprecated since 1.27; use SearchEngineConfig::userNamespaces() |
592 | 593 | * @param user $user |
593 | - * @return array |
|
594 | + * @return integer[] |
|
594 | 595 | */ |
595 | 596 | public static function userNamespaces( $user ) { |
596 | 597 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user ); |
@@ -599,7 +600,7 @@ discard block |
||
599 | 600 | /** |
600 | 601 | * An array of namespaces indexes to be searched by default |
601 | 602 | * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces() |
602 | - * @return array |
|
603 | + * @return integer[] |
|
603 | 604 | */ |
604 | 605 | public static function defaultNamespaces() { |
605 | 606 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces(); |
@@ -610,7 +611,7 @@ discard block |
||
610 | 611 | * and preferences |
611 | 612 | * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText() |
612 | 613 | * @param array $namespaces |
613 | - * @return array |
|
614 | + * @return string[] |
|
614 | 615 | */ |
615 | 616 | public static function namespacesAsText( $namespaces ) { |
616 | 617 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces ); |
@@ -648,7 +649,7 @@ discard block |
||
648 | 649 | * - default: set to true if this profile is the default |
649 | 650 | * |
650 | 651 | * @since 1.28 |
651 | - * @param $profileType the type of profiles |
|
652 | + * @param string $profileType the type of profiles |
|
652 | 653 | * @return array|null the list of profiles or null if none available |
653 | 654 | */ |
654 | 655 | public function getProfiles( $profileType ) { |