Skip to content
Snippets Groups Projects
Commit 388e469f authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 15f08199
No related merge requests found
...@@ -73,7 +73,8 @@ class InjectSpellingListener ...@@ -73,7 +73,8 @@ class InjectSpellingListener
/** /**
* Constructor. * Constructor.
* *
* @param BackendInterface $backend Backend * @param BackendInterface $backend Backend
* @param array $dictionaries Spelling dictionaries to use.
* *
* @return void * @return void
*/ */
...@@ -92,8 +93,12 @@ class InjectSpellingListener ...@@ -92,8 +93,12 @@ class InjectSpellingListener
*/ */
public function attach(SharedEventManagerInterface $manager) public function attach(SharedEventManagerInterface $manager)
{ {
$manager->attach('VuFind\Search', Service::EVENT_PRE, array($this, 'onSearchPre')); $manager->attach(
$manager->attach('VuFind\Search', Service::EVENT_POST, array($this, 'onSearchPost')); 'VuFind\Search', Service::EVENT_PRE, array($this, 'onSearchPre')
);
$manager->attach(
'VuFind\Search', Service::EVENT_POST, array($this, 'onSearchPost')
);
} }
/** /**
......
...@@ -132,6 +132,13 @@ class Results extends \VuFind\Search\Base\Results ...@@ -132,6 +132,13 @@ class Results extends \VuFind\Search\Base\Results
return false; 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) protected function fixBadQueryGroup(QueryGroup $query)
{ {
$newQueries = array(); $newQueries = array();
......
...@@ -198,7 +198,7 @@ class Params extends \VuFind\Search\Base\Params ...@@ -198,7 +198,7 @@ class Params extends \VuFind\Search\Base\Params
/** /**
* Set up filters based on VuFind settings. * Set up filters based on VuFind settings.
* *
* @param ParamBag $params Parameter collection to update * @param ParamBag $params Parameter collection to update
* *
* @return void * @return void
*/ */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment