@@ -103,14 +103,14 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | if ($relatedSearch->getPostFilters()) { |
106 | - $filterAggregation = new FilterAggregation($name . '-filter'); |
|
106 | + $filterAggregation = new FilterAggregation($name.'-filter'); |
|
107 | 107 | $filterAggregation->setFilter($relatedSearch->getPostFilters()); |
108 | 108 | $filterAggregation->addAggregation($aggregation); |
109 | 109 | $search->addAggregation($filterAggregation); |
110 | 110 | |
111 | 111 | if ($this->showZeroChoices) { |
112 | 112 | $unfilteredAggregation = clone $aggregation; |
113 | - $unfilteredAggregation->setName($name . '-unfiltered'); |
|
113 | + $unfilteredAggregation->setName($name.'-unfiltered'); |
|
114 | 114 | $search->addAggregation($unfilteredAggregation); |
115 | 115 | } |
116 | 116 | } else { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $unsortedChoices = []; |
137 | 137 | $zeroValueChoices = []; |
138 | 138 | |
139 | - if ($this->showZeroChoices && $agg = $result->getAggregation($data->getName() . '-unfiltered')) { |
|
139 | + if ($this->showZeroChoices && $agg = $result->getAggregation($data->getName().'-unfiltered')) { |
|
140 | 140 | foreach ($agg as $bucket) { |
141 | 141 | $zeroValueChoices[$bucket['key']] = $bucket['doc_count']; |
142 | 142 | } |