Passed
Branch main (a8748d)
by Diego
13:41
created
Category
src/Strategy/AbstractSortStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Strategy/ComplexSortStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.