Completed
Push — master ( 8f5e1b...8f92b8 )
by Cristian
01:32
created
src/app/Models/Traits/InheritsRelationsFromParentModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
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)));
Please login to merge, or discard this patch.