@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | * @param FacetSet $facets |
49 | 49 | */ |
50 | 50 | protected function createFacets(FormBuilderInterface $builder, FacetSet $facets) { |
51 | - foreach($facets->getFacets() as $facetType => $facetValues) { |
|
52 | - $builder->add('facet_' . $facetType, ChoiceType::class, array( |
|
53 | - 'label' => 'stinger_soft_entity_search.forms.query.' . $facetType . '.label', |
|
51 | + foreach ($facets->getFacets() as $facetType => $facetValues) { |
|
52 | + $builder->add('facet_'.$facetType, ChoiceType::class, array( |
|
53 | + 'label' => 'stinger_soft_entity_search.forms.query.'.$facetType.'.label', |
|
54 | 54 | 'multiple' => true, |
55 | 55 | 'expanded' => true, |
56 | 56 | 'choices_as_values' => true, |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | protected function generateFacetChoices($facetType, array $facets) { |
68 | 68 | $choices = array(); |
69 | 69 | |
70 | - foreach($facets as $facet => $count) { |
|
71 | - if($count == 0) |
|
70 | + foreach ($facets as $facet => $count) { |
|
71 | + if ($count == 0) |
|
72 | 72 | break; |
73 | - $choices[$facet . ' (' . $count . ')'] = $facet; |
|
73 | + $choices[$facet.' ('.$count.')'] = $facet; |
|
74 | 74 | } |
75 | 75 | return $choices; |
76 | 76 | } |