@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function delete(Model $model) |
| 61 | 61 | { |
| 62 | - $toDecrement = $model::where($this->column, '>', $model->{$this->column})->get(); |
|
| 63 | - if(count($toDecrement)) { |
|
| 62 | + $toDecrement = $model::where($this->column, '>', $model->{$this->column})->get(); |
|
| 63 | + if (count($toDecrement)) { |
|
| 64 | 64 | $toDecrement->each->decrement($this->column); |
| 65 | 65 | true; |
| 66 | 66 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function toMiddle(Model $model) |
| 117 | 117 | { |
| 118 | 118 | $middle = number_format($this->count($model) / 2); |
| 119 | - $between = [$model->{$this->column}, $middle]; |
|
| 119 | + $between = [ $model->{$this->column}, $middle ]; |
|
| 120 | 120 | |
| 121 | 121 | if ($model->{$this->column} != $middle) { |
| 122 | 122 | if ($model->{$this->column} > $middle) { |