diff --git a/module/VuFind/src/VuFind/Search/Solr/InjectSpellingListener.php b/module/VuFind/src/VuFind/Search/Solr/InjectSpellingListener.php index 00fbfb267ce6611dbcf3f481cd665a5f682e3d2d..fe2fb07527ebc38f4e496095507ea9deebd9abeb 100644 --- a/module/VuFind/src/VuFind/Search/Solr/InjectSpellingListener.php +++ b/module/VuFind/src/VuFind/Search/Solr/InjectSpellingListener.php @@ -73,7 +73,8 @@ class InjectSpellingListener /** * Constructor. * - * @param BackendInterface $backend Backend + * @param BackendInterface $backend Backend + * @param array $dictionaries Spelling dictionaries to use. * * @return void */ @@ -92,8 +93,12 @@ class InjectSpellingListener */ public function attach(SharedEventManagerInterface $manager) { - $manager->attach('VuFind\Search', Service::EVENT_PRE, array($this, 'onSearchPre')); - $manager->attach('VuFind\Search', Service::EVENT_POST, array($this, 'onSearchPost')); + $manager->attach( + 'VuFind\Search', Service::EVENT_PRE, array($this, 'onSearchPre') + ); + $manager->attach( + 'VuFind\Search', Service::EVENT_POST, array($this, 'onSearchPost') + ); } /** diff --git a/module/VuFind/src/VuFind/Search/Solr/Results.php b/module/VuFind/src/VuFind/Search/Solr/Results.php index 86b85677ab17e303e539a9d8862a0df1ab818b65..b0849c62b0bfeb016932d225b258e166617b8340 100644 --- a/module/VuFind/src/VuFind/Search/Solr/Results.php +++ b/module/VuFind/src/VuFind/Search/Solr/Results.php @@ -132,6 +132,13 @@ class Results extends \VuFind\Search\Base\Results return false; } + /** + * Support method for fixBadQuery(). + * + * @param QueryGroup $query Query to fix + * + * @return bool|QueryGroup Fixed query, or false if no solution is found. + */ protected function fixBadQueryGroup(QueryGroup $query) { $newQueries = array(); diff --git a/module/VuFind/src/VuFind/Search/Summon/Params.php b/module/VuFind/src/VuFind/Search/Summon/Params.php index 4486a62907d93fcf632c06cd7e6cd6581bb7b827..10a459d631bfe5070506d4209ee1b7295322c7e4 100644 --- a/module/VuFind/src/VuFind/Search/Summon/Params.php +++ b/module/VuFind/src/VuFind/Search/Summon/Params.php @@ -198,7 +198,7 @@ class Params extends \VuFind\Search\Base\Params /** * Set up filters based on VuFind settings. * - * @param ParamBag $params Parameter collection to update + * @param ParamBag $params Parameter collection to update * * @return void */