Commit 5ec1044b authored by Bas de Nooijer's avatar Bas de Nooijer

Code style fixes

parent 6542c720
......@@ -100,7 +100,7 @@ class Solarium_Client_ResponseParser_Analysis_Field extends Solarium_Client_Resp
foreach ($fieldData as $typeKey => $typeData) {
// fix for extra level for key fields
if (count($typeData) == 1){
if (count($typeData) == 1) {
$typeData = current($typeData);
}
......
......@@ -93,6 +93,12 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
}
}
/**
* Parse collation data into a result object
*
* @param array $values
* @return Solarium_Result_Select_Spellcheck_Collation
*/
protected function _parseCollation($values)
{
if (is_string($values)) {
......@@ -141,6 +147,13 @@ class Solarium_Client_ResponseParser_Select_Component_Spellcheck
}
}
/**
* Parse suggestion data into a result object
*
* @param string $key
* @param array $value
* @return Solarium_Result_Select_Spellcheck_Suggestion
*/
protected function _parseSuggestion($key, $value)
{
$numFound = (isset($value['numFound'])) ? $value['numFound'] : null;
......
......@@ -853,7 +853,7 @@ class Solarium_Query_Select extends Solarium_Query
return $this->getComponent(Solarium_Query_Select::COMPONENT_GROUPING, true);
}
/*
/**
* Get a spellcheck component instance
*
* This is a convenience method that maps presets to getComponent
......@@ -865,7 +865,7 @@ class Solarium_Query_Select extends Solarium_Query
return $this->getComponent(Solarium_Query_Select::COMPONENT_SPELLCHECK, true);
}
/*
/**
* Get a DistributedSearch component instance
*
* This is a convenience method that maps presets to getComponent
......
Markdown is supported
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