GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dd1b05...af5c14 )
by Florian
03:17
created
Form/QueryType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
 	 * @param FacetSet $facets        	
60 60
 	 */
61 61
 	protected function createFacets(FormBuilderInterface $builder, FacetSet $facets) {
62
-		foreach($facets->getFacets() as $facetType => $facetValues) {
63
-			$builder->add('facet_' . $facetType, ChoiceType::class, array(
64
-				'label' => 'stinger_soft_entity_search.forms.query.' . $facetType . '.label',
62
+		foreach ($facets->getFacets() as $facetType => $facetValues) {
63
+			$builder->add('facet_'.$facetType, ChoiceType::class, array(
64
+				'label' => 'stinger_soft_entity_search.forms.query.'.$facetType.'.label',
65 65
 				'multiple' => true,
66 66
 				'expanded' => true,
67 67
 				'choices_as_values' => true,
68
-				'property_path' => 'facets[' . $facetType . ']',
68
+				'property_path' => 'facets['.$facetType.']',
69 69
 				'choices' => $this->generateFacetChoices($facetType, $facetValues) 
70 70
 			));
71 71
 		}
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
 	protected function generateFacetChoices($facetType, array $facets) {
80 80
 		$choices = array();
81 81
 		
82
-		foreach($facets as $facet => $count) {
83
-			if($count == 0)
82
+		foreach ($facets as $facet => $count) {
83
+			if ($count == 0)
84 84
 				break;
85
-			$choices[$facet . ' (' . $count . ')'] = $facet;
85
+			$choices[$facet.' ('.$count.')'] = $facet;
86 86
 		}
87 87
 		return $choices;
88 88
 	}
Please login to merge, or discard this patch.