diff options
author | Reedy <reedy@wikimedia.org> | 2020-05-17 23:39:57 +0100 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2020-05-18 20:42:50 +0000 |
commit | a5a6cc349561f7244f45a7618d04e73c9854cf0f (patch) | |
tree | a77103f2c2a53ffe00710d91cad0c8e4f9cb0cb5 /includes/search/SearchEngine.php | |
parent | 98a2ef8608f98211e2fcc6da8e0bafc8df8841a5 (diff) | |
download | mediawikicore-a5a6cc349561f7244f45a7618d04e73c9854cf0f.tar.gz mediawikicore-a5a6cc349561f7244f45a7618d04e73c9854cf0f.zip |
Fix more Squiz.Scope.MethodScope.Missing
Change-Id: If48a16c4c1139342d597c2f6204348c1070dfc71
Diffstat (limited to 'includes/search/SearchEngine.php')
-rw-r--r-- | includes/search/SearchEngine.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php index 8be1af7628c5..7ba3fb041b03 100644 --- a/includes/search/SearchEngine.php +++ b/includes/search/SearchEngine.php @@ -275,7 +275,7 @@ abstract class SearchEngine { * @param int $limit * @param int $offset */ - function setLimitOffset( $limit, $offset = 0 ) { + public function setLimitOffset( $limit, $offset = 0 ) { $this->limit = intval( $limit ); $this->offset = intval( $offset ); } @@ -286,7 +286,7 @@ abstract class SearchEngine { * * @param int[]|null $namespaces */ - function setNamespaces( $namespaces ) { + public function setNamespaces( $namespaces ) { if ( $namespaces ) { // Filter namespaces to only keep valid ones $validNs = MediaWikiServices::getInstance()->getSearchEngineConfig()->searchableNamespaces(); @@ -306,7 +306,7 @@ abstract class SearchEngine { * * @param bool $showSuggestion Should the searcher try to build suggestions */ - function setShowSuggestion( $showSuggestion ) { + public function setShowSuggestion( $showSuggestion ) { $this->showSuggestion = $showSuggestion; } @@ -356,7 +356,7 @@ abstract class SearchEngine { * @param string $query * @return string */ - function replacePrefixes( $query ) { + public function replacePrefixes( $query ) { return $query; } @@ -476,7 +476,7 @@ abstract class SearchEngine { * @param int $id Page id that was deleted * @param string $title Title of page that was deleted */ - function delete( $id, $title ) { + public function delete( $id, $title ) { // no-op } |