@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | { |
56 | 56 | $sign = strtolower($direction) === 'asc' ? 1 : -1; |
57 | 57 | if ($this->options & self::CASE_SENSITIVE) { |
58 | - $this->comparators[] = function ($a, $b) use ($field, $sign) { |
|
58 | + $this->comparators[] = function($a, $b) use ($field, $sign) { |
|
59 | 59 | return strnatcmp($a[$field], $b[$field]) * $sign; |
60 | 60 | }; |
61 | 61 | } else { |
62 | - $this->comparators[] = function ($a, $b) use ($field, $sign) { |
|
62 | + $this->comparators[] = function($a, $b) use ($field, $sign) { |
|
63 | 63 | return strnatcasecmp($a[$field], $b[$field]) * $sign; |
64 | 64 | }; |
65 | 65 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function get(): array |
75 | 75 | { |
76 | 76 | $sort = $this->options & self::PRESERVE_KEYS ? 'uasort' : 'usort'; |
77 | - $sort($this->data, function ($a, $b) { |
|
77 | + $sort($this->data, function($a, $b) { |
|
78 | 78 | foreach ($this->comparators as $f) { |
79 | 79 | $result = $f($a, $b); |
80 | 80 | if ($result !== 0) { |