@@ -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 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public static function setNewOrder($ids, int $startOrder = 1, string $primaryKeyColumn = null) |
| 39 | 39 | { |
| 40 | - if (! is_array($ids) && ! $ids instanceof ArrayAccess) { |
|
| 40 | + if (!is_array($ids) && !$ids instanceof ArrayAccess) { |
|
| 41 | 41 | throw new InvalidArgumentException('You must pass an array or ArrayAccess object to setNewOrder'); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | ->where($orderColumnName, '>', $this->$orderColumnName) |
| 84 | 84 | ->first(); |
| 85 | 85 | |
| 86 | - if (! $swapWithModel) { |
|
| 86 | + if (!$swapWithModel) { |
|
| 87 | 87 | return $this; |
| 88 | 88 | } |
| 89 | 89 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ->where($orderColumnName, '<', $this->$orderColumnName) |
| 100 | 100 | ->first(); |
| 101 | 101 | |
| 102 | - if (! $swapWithModel) { |
|
| 102 | + if (!$swapWithModel) { |
|
| 103 | 103 | return $this; |
| 104 | 104 | } |
| 105 | 105 | |