Passed
Pull Request — master (#1519)
by Georg
04:17
created
Classes/Domain/Search/SearchRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $activeFacets = $this->getActiveFacets();
155 155
         $facetNames = [];
156 156
 
157
-        array_map(function ($activeFacet) use (&$facetNames) {
157
+        array_map(function($activeFacet) use (&$facetNames) {
158 158
             $facetNames[] = substr($activeFacet, 0, strpos($activeFacet, ':'));
159 159
         }, $activeFacets);
160 160
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $values = [];
172 172
         $activeFacets = $this->getActiveFacets();
173 173
 
174
-        array_map(function ($activeFacet) use (&$values, $facetName) {
174
+        array_map(function($activeFacet) use (&$values, $facetName) {
175 175
             $parts = explode(':', $activeFacet, 2);
176 176
             if ($parts[0] === $facetName) {
177 177
                 $values[] = $parts[1];
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     public function removeAllFacetValuesByName($facetName)
274 274
     {
275 275
         $facetValues = $this->getActiveFacets();
276
-        $facetValues = array_filter($facetValues, function ($facetValue) use ($facetName) {
276
+        $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) {
277 277
             $parts = explode(':', $facetValue, 2);
278 278
             return $parts[0] !== $facetName;
279 279
         });
Please login to merge, or discard this patch.
Classes/Domain/Search/Statistics/StatisticsRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $sumCount += $statisticsRow['count'];
64 64
         }
65 65
 
66
-        $statisticsRows = array_map(function ($row) use ($sumCount) {
66
+        $statisticsRows = array_map(function($row) use ($sumCount) {
67 67
             $row['percent'] = $row['count'] * 100 / $sumCount;
68 68
             return $row;
69 69
         }, $statisticsRows);
Please login to merge, or discard this patch.
Classes/Domain/Search/Uri/SearchUriBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -304,10 +304,10 @@
 block discarded – undo
304 304
             self::$preCompiledLinks[$hash] = $template;
305 305
         }
306 306
 
307
-        $keys = array_map(function ($value) {
307
+        $keys = array_map(function($value) {
308 308
             return urlencode($value);
309 309
         }, array_keys($values));
310
-        $values = array_map(function ($value) {
310
+        $values = array_map(function($value) {
311 311
             return urlencode($value);
312 312
         }, $values);
313 313
         $uri = str_replace($keys, $values, $template);
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/AbstractFacetItemCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function getSelected()
65 65
     {
66
-        return $this->getFilteredCopy(function (AbstractFacetItem $item) {
66
+        return $this->getFilteredCopy(function(AbstractFacetItem $item) {
67 67
             return $item->getSelected();
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/FacetCollection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function getUsed()
25 25
     {
26 26
         return $this->getFilteredCopy(
27
-            function (AbstractFacet $facet) {
27
+            function(AbstractFacet $facet) {
28 28
                 return $facet->getIsUsed() && $facet->getIncludeInUsedFacets();
29 29
             }
30 30
         );
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function getAvailable()
37 37
     {
38 38
         return $this->getFilteredCopy(
39
-            function (AbstractFacet $facet) {
39
+            function(AbstractFacet $facet) {
40 40
                 return $facet->getIsAvailable() && $facet->getIncludeInAvailableFacets() && $facet->getAllRequirementsMet();
41 41
             }
42 42
         );
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function getByGroupName($requiredGroup = 'all')
50 50
     {
51 51
         return $this->getFilteredCopy(
52
-            function (AbstractFacet $facet) use ($requiredGroup) {
52
+            function(AbstractFacet $facet) use ($requiredGroup) {
53 53
                 return $facet->getGroupName() == $requiredGroup;
54 54
             }
55 55
         );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function getByName($requiredName)
63 63
     {
64 64
         return $this->getFilteredCopy(
65
-            function (AbstractFacet $facet) use ($requiredName) {
65
+            function(AbstractFacet $facet) use ($requiredName) {
66 66
                 return $facet->getName() == $requiredName;
67 67
             }
68 68
         );
Please login to merge, or discard this patch.
Search/ResultSet/Facets/OptionBased/Hierarchy/HierarchyFacetParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         $path = str_replace('\/', '@@@', $path);
86 86
         $path = rtrim($path, '/');
87 87
         $segments = explode('/', $path);
88
-        return array_map(function ($item) {
88
+        return array_map(function($item) {
89 89
             return str_replace('@@@', '/', $item);
90 90
         }, $segments);
91 91
     }
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/AbstractFacet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
      */
239 239
     public function getIncludeInUsedFacets()
240 240
     {
241
-        return ((int) $this->getFacetSettingOrDefaultValue('includeInUsedFacets', 1)) === 1;
241
+        return ((int)$this->getFacetSettingOrDefaultValue('includeInUsedFacets', 1)) === 1;
242 242
     }
243 243
 
244 244
     /**
Please login to merge, or discard this patch.
Classes/System/UserFunctions/FlexFormUserFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
63 63
     {
64 64
         $newItems = [];
65 65
 
66
-        array_map(function ($fieldName) use (&$newItems, $configuredFacets) {
66
+        array_map(function($fieldName) use (&$newItems, $configuredFacets) {
67 67
             $value = $fieldName;
68 68
             $label = $fieldName;
69 69
 
70
-            $facetNameFilter = function ($facet) use ($fieldName) {
70
+            $facetNameFilter = function($facet) use ($fieldName) {
71 71
                 return $facet['field'] === $fieldName;
72 72
             };
73 73
             $configuredFacets = array_filter($configuredFacets, $facetNameFilter);
Please login to merge, or discard this patch.