@@ -53,7 +53,7 @@ |
||
| 53 | 53 | public function sortItems($callback = null) |
| 54 | 54 | { |
| 55 | 55 | if ($callback === null) { |
| 56 | - $callback = function ($a, $b) { |
|
| 56 | + $callback = function($a, $b) { |
|
| 57 | 57 | return strcmp($a->getName(), $b->getName()); |
| 58 | 58 | }; |
| 59 | 59 | } |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | $aggregation = new NestedAggregation($state->getName(), $path); |
| 157 | 157 | $nameAggregation = new TermsAggregation('name', $this->getNameField()); |
| 158 | 158 | $valueAggregation = new TermsAggregation('value', $field); |
| 159 | - $filterAggregation = new FilterAggregation($state->getName() . '-filter'); |
|
| 159 | + $filterAggregation = new FilterAggregation($state->getName().'-filter'); |
|
| 160 | 160 | $nameAggregation->addAggregation($valueAggregation); |
| 161 | 161 | $aggregation->addAggregation($nameAggregation); |
| 162 | 162 | $filterAggregation->setFilter($filter); |