@@ -52,7 +52,7 @@ |
||
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 | }); |
@@ -89,12 +89,12 @@ |
||
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; |