CS fixes for 3.1

This commit is contained in:
Tim Nagel 2015-03-12 21:45:24 +11:00
commit 89db88c2a0
20 changed files with 54 additions and 43 deletions

View file

@ -35,9 +35,9 @@ class FantaPaginatorAdapter implements AdapterInterface
{
return $this->adapter->getFacets();
}
/**
* Returns Aggregations
* Returns Aggregations.
*
* @return mixed
*

View file

@ -27,9 +27,9 @@ interface PaginatorAdapterInterface
* @return mixed
*/
public function getFacets();
/**
* Returns Aggregations
* Returns Aggregations.
*
* @return mixed
*/

View file

@ -24,9 +24,9 @@ interface PartialResultsInterface
* @return array
*/
public function getFacets();
/**
* Returns the aggregations
* Returns the aggregations.
*
* @return array
*/

View file

@ -36,7 +36,7 @@ class RawPaginatorAdapter implements PaginatorAdapterInterface
* @var array for the facets
*/
private $facets;
/**
* @var array for the aggregations
*/
@ -110,9 +110,12 @@ class RawPaginatorAdapter implements PaginatorAdapterInterface
/**
* Returns the number of results.
*
* @param boolean $genuineTotal make the function return the `hits.total`
* value of the search result in all cases, instead of limiting it to the
* `size` request parameter.
* If genuineTotal is provided as true, total hits is returned from the
* hits.total value from the search results instead of just returning
* the requested size.
*
* @param boolean $genuineTotal
*
* @return integer The number of results.
*/
public function getTotalHits($genuineTotal = false)
@ -139,13 +142,14 @@ class RawPaginatorAdapter implements PaginatorAdapterInterface
return $this->facets;
}
/**
* Returns Aggregations
* Returns Aggregations.
*
* @return mixed
*/
public function getAggregations() {
public function getAggregations()
{
if (!isset($this->aggregations)) {
$this->aggregations = $this->searchable->search($this->query)->getAggregations();
}