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
/**
* 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')
);
}
/**
......
......@@ -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();
......
......@@ -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
*/
......
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