@@ -11,7 +11,7 @@ discard block  | 
                                                    ||
| 11 | 11 |  { | 
                                                        
| 12 | 12 | public static function bootSortableTrait()  | 
                                                        
| 13 | 13 |      { | 
                                                        
| 14 | -        static::creating(function ($model) { | 
                                                        |
| 14 | +        static::creating(function($model) { | 
                                                        |
| 15 | 15 |              if ($model instanceof Sortable && $model->shouldSortWhenCreating()) { | 
                                                        
| 16 | 16 | $model->setHighestOrderNumber();  | 
                                                        
| 17 | 17 | }  | 
                                                        
@@ -61,7 +61,7 @@ discard block  | 
                                                    ||
| 61 | 61 | */  | 
                                                        
| 62 | 62 | public static function setNewOrder($ids, int $startOrder = 1, string $primaryKeyColumn = null)  | 
                                                        
| 63 | 63 |      { | 
                                                        
| 64 | -        if (! is_array($ids) && ! $ids instanceof ArrayAccess) { | 
                                                        |
| 64 | +        if (!is_array($ids) && !$ids instanceof ArrayAccess) { | 
                                                        |
| 65 | 65 |              throw new InvalidArgumentException('You must pass an array or ArrayAccess object to setNewOrder'); | 
                                                        
| 66 | 66 | }  | 
                                                        
| 67 | 67 | |
@@ -87,7 +87,7 @@ discard block  | 
                                                    ||
| 87 | 87 |      { | 
                                                        
| 88 | 88 | if (  | 
                                                        
| 89 | 89 | isset($this->sortable['order_column_name']) &&  | 
                                                        
| 90 | - ! empty($this->sortable['order_column_name'])  | 
                                                        |
| 90 | + !empty($this->sortable['order_column_name'])  | 
                                                        |
| 91 | 91 |          ) { | 
                                                        
| 92 | 92 | return $this->sortable['order_column_name'];  | 
                                                        
| 93 | 93 | }  | 
                                                        
@@ -117,7 +117,7 @@ discard block  | 
                                                    ||
| 117 | 117 | ->where($orderColumnName, '>', $this->$orderColumnName)  | 
                                                        
| 118 | 118 | ->first();  | 
                                                        
| 119 | 119 | |
| 120 | -        if (! $swapWithModel) { | 
                                                        |
| 120 | +        if (!$swapWithModel) { | 
                                                        |
| 121 | 121 | return $this;  | 
                                                        
| 122 | 122 | }  | 
                                                        
| 123 | 123 | |
@@ -138,7 +138,7 @@ discard block  | 
                                                    ||
| 138 | 138 | ->where($orderColumnName, '<', $this->$orderColumnName)  | 
                                                        
| 139 | 139 | ->first();  | 
                                                        
| 140 | 140 | |
| 141 | -        if (! $swapWithModel) { | 
                                                        |
| 141 | +        if (!$swapWithModel) { | 
                                                        |
| 142 | 142 | return $this;  | 
                                                        
| 143 | 143 | }  | 
                                                        
| 144 | 144 | |
@@ -41,14 +41,14 @@ discard block  | 
                                                    ||
| 41 | 41 | |
| 42 | 42 | protected function setUpDatabase()  | 
                                                        
| 43 | 43 |      { | 
                                                        
| 44 | -        $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function (Blueprint $table) { | 
                                                        |
| 44 | +        $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function(Blueprint $table) { | 
                                                        |
| 45 | 45 |              $table->increments('id'); | 
                                                        
| 46 | 46 |              $table->string('name'); | 
                                                        
| 47 | 47 |              $table->string('custom_column_sort'); | 
                                                        
| 48 | 48 |              $table->integer('order_column'); | 
                                                        
| 49 | 49 | });  | 
                                                        
| 50 | 50 | |
| 51 | -        collect(range(1, 20))->each(function (int $i) { | 
                                                        |
| 51 | +        collect(range(1, 20))->each(function(int $i) { | 
                                                        |
| 52 | 52 | Dummy::create([  | 
                                                        
| 53 | 53 | 'name' => $i,  | 
                                                        
| 54 | 54 | 'custom_column_sort' => rand(),  | 
                                                        
@@ -58,7 +58,7 @@ discard block  | 
                                                    ||
| 58 | 58 | |
| 59 | 59 | protected function setUpSoftDeletes()  | 
                                                        
| 60 | 60 |      { | 
                                                        
| 61 | -        $this->app['db']->connection()->getSchemaBuilder()->table('dummies', function (Blueprint $table) { | 
                                                        |
| 61 | +        $this->app['db']->connection()->getSchemaBuilder()->table('dummies', function(Blueprint $table) { | 
                                                        |
| 62 | 62 | $table->softDeletes();  | 
                                                        
| 63 | 63 | });  | 
                                                        
| 64 | 64 | }  |