Unify SearchEngine normalizeNamespace and parseNamespacePrefixes
authorDavid Causse <dcausse@wikimedia.org>
Mon, 9 Jul 2018 16:55:54 +0000 (18:55 +0200)
committerEBernhardson <ebernhardson@wikimedia.org>
Tue, 17 Jul 2018 21:56:05 +0000 (21:56 +0000)
commit3115b3202d50d830a1db70d43bc32f6afb236930
tree6deb0c055a52491260b3fe0f6978aae80c50156b
parent46c17ddb1ff10a1e073742c9d8b831cd915802f3
Unify SearchEngine normalizeNamespace and parseNamespacePrefixes

These methods are very similar there should be no need to have
two differents way to extract the namespace prefix.

Bug: T198860
Change-Id: I22802278452559d35a3d8f6068549c1fef1a5e86
includes/PrefixSearch.php
includes/search/SearchEngine.php
tests/phpunit/includes/search/SearchEngineTest.php
tests/phpunit/mocks/search/MockCompletionSearchEngine.php