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