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