Completed
Push — master ( 26d428...cbcdc3 )
by Freek
02:38 queued 27s
created
src/SortableTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public static function bootSortableTrait()
12 12
     {
13
-        static::creating(function ($model) {
13
+        static::creating(function($model) {
14 14
             if ($model instanceof Sortable && $model->shouldSortWhenCreating()) {
15 15
                 $model->setHighestOrderNumber();
16 16
             }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function setNewOrder($ids, int $startOrder = 1)
61 61
     {
62
-        if (! is_array($ids) && ! $ids instanceof ArrayAccess) {
62
+        if (!is_array($ids) && !$ids instanceof ArrayAccess) {
63 63
             throw new InvalidArgumentException('You must pass an array or ArrayAccess object to setNewOrder');
64 64
         }
65 65
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         if (
82 82
             isset($this->sortable['order_column_name']) &&
83
-            ! empty($this->sortable['order_column_name'])
83
+            !empty($this->sortable['order_column_name'])
84 84
         ) {
85 85
             return $this->sortable['order_column_name'];
86 86
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             ->where($orderColumnName, '>', $this->$orderColumnName)
111 111
             ->first();
112 112
 
113
-        if (! $swapWithModel) {
113
+        if (!$swapWithModel) {
114 114
             return $this;
115 115
         }
116 116
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             ->where($orderColumnName, '<', $this->$orderColumnName)
132 132
             ->first();
133 133
 
134
-        if (! $swapWithModel) {
134
+        if (!$swapWithModel) {
135 135
             return $this;
136 136
         }
137 137
 
Please login to merge, or discard this patch.