Test Setup Failed
Branch master (d9722a)
by Alexandr
02:58
created
Category
src/ArrayRecordset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.