@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | file_put_contents(__DIR__.'/database.sqlite', null); |
45 | 45 | |
46 | - $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function (Blueprint $table) { |
|
46 | + $this->app['db']->connection()->getSchemaBuilder()->create('dummies', function(Blueprint $table) { |
|
47 | 47 | $table->increments('id'); |
48 | 48 | $table->string('name'); |
49 | 49 | $table->integer('order_column'); |
@@ -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 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function getHighestOrderNumber() |
33 | 33 | { |
34 | - return (int)static::max($this->determineOrderColumnName()); |
|
34 | + return (int) static::max($this->determineOrderColumnName()); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |