@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | public static function bootHasParent() |
20 | 20 | { |
21 | - static::creating(function ($model) { |
|
21 | + static::creating(function($model) { |
|
22 | 22 | if ($model->parentHasHasChildrenTrait()) { |
23 | 23 | $model->forceFill( |
24 | 24 | [$model->getInheritanceColumn() => $model->classToAlias(get_class($model))] |
25 | 25 | ); |
26 | 26 | } |
27 | 27 | }); |
28 | - static::addGlobalScope(function ($query) { |
|
28 | + static::addGlobalScope(function($query) { |
|
29 | 29 | $instance = new static(); |
30 | 30 | if ($instance->parentHasHasChildrenTrait()) { |
31 | 31 | $query->where($instance->getTable().'.'.$instance->getInheritanceColumn(), $instance->classToAlias(get_class($instance))); |