Completed
Push — master ( d8ff9a...a3b192 )
by Jesse
01:49
created
src/Sorted.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,12 +13,10 @@
 block discarded – undo
13 13
         foreach ($fields as $field => $ascend) {
14 14
             if ($sorting === null) {
15 15
                 $sorting = $ascend ?
16
-                    Sort::ascendingBy($field) :
17
-                    Sort::descendingBy($field);
16
+                    Sort::ascendingBy($field) : Sort::descendingBy($field);
18 17
             } else {
19 18
                 $sorting = $ascend ?
20
-                    $sorting->andThenAscendingBy($field) :
21
-                    $sorting->andThenDescendingBy($field);
19
+                    $sorting->andThenAscendingBy($field) : $sorting->andThenDescendingBy($field);
22 20
             }
23 21
         }
24 22
         return $sorting ?: DoNotSort::atAll();
Please login to merge, or discard this patch.