Passed
Pull Request — master (#1717)
by Timo
13:10
created
Classes/Domain/Search/ResultSet/Facets/OptionBased/OptionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         return $this->getFilteredCopy(function(Option $option) use ($filteredPrefix)
53 53
         {
54 54
             $filteredPrefixLength = strlen($filteredPrefix);
55
-            $currentPrefix = substr(strtolower($option->getLabel()),0, $filteredPrefixLength);
55
+            $currentPrefix = substr(strtolower($option->getLabel()), 0, $filteredPrefixLength);
56 56
 
57 57
             return $currentPrefix === $filteredPrefix;
58 58
         });
Please login to merge, or discard this patch.
Classes/ViewHelpers/Facet/Options/Group/Prefix/LabelPrefixesViewHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,12 +89,12 @@
 block discarded – undo
89 89
      */
90 90
     protected static function applySortBy(array $prefixes, $sortBy): array
91 91
     {
92
-        if($sortBy === 'count' || $sortBy === '')
92
+        if ($sortBy === 'count' || $sortBy === '')
93 93
         {
94 94
             return $prefixes;
95 95
         }
96 96
 
97
-        if($sortBy === 'alpha')
97
+        if ($sortBy === 'alpha')
98 98
         {
99 99
             sort($prefixes);
100 100
             return $prefixes;
Please login to merge, or discard this patch.