@@ -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 | /** |
@@ -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; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $this->property_map[] = [ |
| 27 | 27 | 'accessor' => $accessor, |
| 28 | - 'direction' => $order ?? $this->getOrder(), |
|
| 28 | + 'direction' => $order ?? $this->getOrder(), |
|
| 29 | 29 | 'comparator' => $comparator ?? $this->getComparator(), |
| 30 | 30 | ]; |
| 31 | 31 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $propertyExtractor = $this->getPropertyExtractor(); |
| 39 | 39 | $valueChecker = $this->getValueChecker(); |
| 40 | 40 | |
| 41 | - return static function (mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
| 41 | + return static function(mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
| 42 | 42 | |
| 43 | 43 | foreach ($propertyMap as $property) { |
| 44 | 44 | $valueA = $propertyExtractor($a, $property['accessor']); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | private function getPropertyExtractor(): Closure |
| 68 | 68 | { |
| 69 | - return static function (mixed $property, mixed $accessor = null): mixed { |
|
| 69 | + return static function(mixed $property, mixed $accessor = null): mixed { |
|
| 70 | 70 | |
| 71 | 71 | if (is_string($property) || !$accessor) { |
| 72 | 72 | return $property; |