@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function addFacetValue(string $key, string $label, $value = null, int $increaseCounterBy = 1) : void { |
| 35 | 35 | $value = $value ?? $label; |
| 36 | - if(!isset($this->facets[$key])) { |
|
| 36 | + if (!isset($this->facets[$key])) { |
|
| 37 | 37 | $this->facets[$key] = array(); |
| 38 | 38 | } |
| 39 | - if(!isset($this->facets[$key][$label])) { |
|
| 39 | + if (!isset($this->facets[$key][$label])) { |
|
| 40 | 40 | $this->facets[$key][$label] = array( |
| 41 | 41 | 'value' => $value, |
| 42 | 42 | 'count' => 0, |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @see \StingerSoft\EntitySearchBundle\Model\Result\FacetSet::getFacet() |
| 53 | 53 | */ |
| 54 | 54 | public function getFacet(string $key): ?array { |
| 55 | - if(isset($this->facets[$key])) { |
|
| 55 | + if (isset($this->facets[$key])) { |
|
| 56 | 56 | return $this->facets[$key]; |
| 57 | 57 | } |
| 58 | 58 | return null; |