Completed
Push — master ( 2a1075...dd1b05 )
by Florian
03:22
created
Form/QueryType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.