@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public static function bootIncrementable() |
17 | 17 | { |
18 | - static::creating(function ($model) { |
|
18 | + static::creating(function($model) { |
|
19 | 19 | $model->setIncrementableValue(); |
20 | 20 | }); |
21 | 21 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function getIncrementableField(): string |
41 | 41 | { |
42 | - if (! property_exists($this, 'incrementable')) { |
|
42 | + if (!property_exists($this, 'incrementable')) { |
|
43 | 43 | throw MissingIncrementableDefinition::create(get_class($this)); |
44 | 44 | } |
45 | 45 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $incrementableField = $this->getIncrementableField(); |
67 | 67 | |
68 | 68 | return (int) $this->buildIncrementableQuery() |
69 | - ->where(function (Builder $query) { |
|
69 | + ->where(function(Builder $query) { |
|
70 | 70 | $this->buildIncrementableGroupQuery($query); |
71 | 71 | }) |
72 | 72 | ->max($incrementableField); |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function buildIncrementableGroupQuery(Builder $query) |
83 | 83 | { |
84 | - if (! property_exists($this, 'incrementableGroup')) { |
|
84 | + if (!property_exists($this, 'incrementableGroup')) { |
|
85 | 85 | return $query; |
86 | 86 | } |
87 | 87 | |
88 | - collect($this->incrementableGroup)->each(function ($group) use ($query) { |
|
88 | + collect($this->incrementableGroup)->each(function($group) use ($query) { |
|
89 | 89 | $query->where($group, '=', $this->$group); |
90 | 90 | }); |
91 | 91 | } |