@@ -8,7 +8,7 @@ discard block  | 
                                                    ||
| 8 | 8 |  { | 
                                                        
| 9 | 9 | public static function bootSortableTrait()  | 
                                                        
| 10 | 10 |      { | 
                                                        
| 11 | -        static::creating(function ($model) { | 
                                                        |
| 11 | +        static::creating(function($model) { | 
                                                        |
| 12 | 12 |              if ($model instanceof Sortable && $model->shouldSortWhenCreating()) { | 
                                                        
| 13 | 13 | $model->setHighestOrderNumber();  | 
                                                        
| 14 | 14 | }  | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | */  | 
                                                        
| 61 | 61 | public static function setNewOrder($ids, $startOrder = 1)  | 
                                                        
| 62 | 62 |      { | 
                                                        
| 63 | -        if (! is_array($ids) && ! $ids instanceof ArrayAccess) { | 
                                                        |
| 63 | +        if (!is_array($ids) && !$ids instanceof ArrayAccess) { | 
                                                        |
| 64 | 64 |              throw new SortableException('You must pass an array or ArrayAccess object to setNewOrder'); | 
                                                        
| 65 | 65 | }  | 
                                                        
| 66 | 66 | |
@@ -83,7 +83,7 @@ discard block  | 
                                                    ||
| 83 | 83 |      { | 
                                                        
| 84 | 84 | if (  | 
                                                        
| 85 | 85 | isset($this->sortable['order_column_name']) &&  | 
                                                        
| 86 | - ! empty($this->sortable['order_column_name'])  | 
                                                        |
| 86 | + !empty($this->sortable['order_column_name'])  | 
                                                        |
| 87 | 87 |          ) { | 
                                                        
| 88 | 88 | return $this->sortable['order_column_name'];  | 
                                                        
| 89 | 89 | }  | 
                                                        
@@ -98,11 +98,11 @@ discard block  | 
                                                    ||
| 98 | 98 | */  | 
                                                        
| 99 | 99 | public function shouldSortWhenCreating()  | 
                                                        
| 100 | 100 |      { | 
                                                        
| 101 | -        if (! isset($this->sortable)) { | 
                                                        |
| 101 | +        if (!isset($this->sortable)) { | 
                                                        |
| 102 | 102 | return true;  | 
                                                        
| 103 | 103 | }  | 
                                                        
| 104 | 104 | |
| 105 | -        if (! isset($this->sortable['sort_when_creating'])) { | 
                                                        |
| 105 | +        if (!isset($this->sortable['sort_when_creating'])) { | 
                                                        |
| 106 | 106 | return true;  | 
                                                        
| 107 | 107 | }  | 
                                                        
| 108 | 108 | |
@@ -123,7 +123,7 @@ discard block  | 
                                                    ||
| 123 | 123 | ->where($orderColumnName, '>', $this->$orderColumnName)  | 
                                                        
| 124 | 124 | ->first();  | 
                                                        
| 125 | 125 | |
| 126 | -        if (! $swapWithModel) { | 
                                                        |
| 126 | +        if (!$swapWithModel) { | 
                                                        |
| 127 | 127 | return $this;  | 
                                                        
| 128 | 128 | }  | 
                                                        
| 129 | 129 | |
@@ -144,7 +144,7 @@ discard block  | 
                                                    ||
| 144 | 144 | ->where($orderColumnName, '<', $this->$orderColumnName)  | 
                                                        
| 145 | 145 | ->first();  | 
                                                        
| 146 | 146 | |
| 147 | -        if (! $swapWithModel) { | 
                                                        |
| 147 | +        if (!$swapWithModel) { | 
                                                        |
| 148 | 148 | return $this;  | 
                                                        
| 149 | 149 | }  | 
                                                        
| 150 | 150 | |