@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function compare(mixed $a, mixed $b): int |
13 | 13 | { |
14 | - return bccomp((string)$a, (string)$b, $this->scale); |
|
14 | + return bccomp((string) $a, (string) $b, $this->scale); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $this->property_map[] = [ |
32 | 32 | 'accessor' => $accessor, |
33 | - 'direction' => $order ?? $this->getOrder(), |
|
33 | + 'direction' => $order ?? $this->getOrder(), |
|
34 | 34 | 'comparator' => $comparator ?? $this->getComparator(), |
35 | 35 | ]; |
36 | 36 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $propertyExtractor = $this->getPropertyExtractor(); |
44 | 44 | $valueChecker = $this->getValueChecker(); |
45 | 45 | |
46 | - return static function (mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
46 | + return static function(mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
47 | 47 | |
48 | 48 | foreach ($propertyMap as $property) { |
49 | 49 | $valueA = $propertyExtractor($a, $property['accessor']); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | private function getPropertyExtractor(): Closure |
73 | 73 | { |
74 | - return static function (mixed $property, mixed $accessor = null): mixed { |
|
74 | + return static function(mixed $property, mixed $accessor = null): mixed { |
|
75 | 75 | |
76 | 76 | if (is_string($property) || !$accessor) { |
77 | 77 | return $property; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $checker = $this->getValueChecker(); |
62 | 62 | $sortOrder = $this->order; |
63 | 63 | |
64 | - return static function (mixed $a, mixed $b) use ($comparator, $checker, $sortOrder) { |
|
64 | + return static function(mixed $a, mixed $b) use ($comparator, $checker, $sortOrder) { |
|
65 | 65 | $checker($a, $b, $comparator); |
66 | 66 | return $comparator->compare($a, $b) * $sortOrder; |
67 | 67 | }; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | protected function getValueChecker(): Closure |
79 | 79 | { |
80 | - return static function (mixed $a, mixed $b, ComparatorInterface $comparator) { |
|
80 | + return static function(mixed $a, mixed $b, ComparatorInterface $comparator) { |
|
81 | 81 | $exceptionMessage = 'Comparator (%s) does not support "%s"'; |
82 | 82 | |
83 | 83 | $error = null; |