@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $checker = $this->getValueChecker(); |
| 58 | 58 | $sortOrder = $this->order; |
| 59 | 59 | |
| 60 | - return static function (mixed $a, mixed $b) use ($comparator, $checker, $sortOrder) { |
|
| 60 | + return static function(mixed $a, mixed $b) use ($comparator, $checker, $sortOrder) { |
|
| 61 | 61 | $checker($a, $b, $comparator); |
| 62 | 62 | return $comparator->compare($a, $b) * $sortOrder; |
| 63 | 63 | }; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | protected function getValueChecker(): Closure |
| 75 | 75 | { |
| 76 | - return static function (mixed $a, mixed $b, ComparatorInterface $comparator) { |
|
| 76 | + return static function(mixed $a, mixed $b, ComparatorInterface $comparator) { |
|
| 77 | 77 | $exceptionMessage = 'Comparator (%s) does not support "%s"'; |
| 78 | 78 | |
| 79 | 79 | $error = null; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $propertyExtractor = $this->getPropertyExtractor(); |
| 41 | 41 | $valueChecker = $this->getValueChecker(); |
| 42 | 42 | |
| 43 | - return static function (mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
| 43 | + return static function(mixed $a, mixed $b) use ($propertyMap, $propertyExtractor, $valueChecker) { |
|
| 44 | 44 | |
| 45 | 45 | foreach ($propertyMap as $property) { |
| 46 | 46 | $valueA = $propertyExtractor($a, $property['accessor']); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | private function getPropertyExtractor(): Closure |
| 70 | 70 | { |
| 71 | - return static function (mixed $property, mixed $accessor = null): mixed { |
|
| 71 | + return static function(mixed $property, mixed $accessor = null): mixed { |
|
| 72 | 72 | |
| 73 | 73 | if (is_string($property) || !$accessor) { |
| 74 | 74 | return $property; |