Completed
Pull Request — master (#362)
by Cristian
02:14
created
src/app/Models/Traits/InheritsRelationsFromParentModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 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)));
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function getTable()
43 43
     {
44
-        if (! isset($this->table)) {
44
+        if (!isset($this->table)) {
45 45
             return str_replace('\\', '', Str::snake(Str::plural(class_basename($this->getParentClass()))));
46 46
         }
47 47
         return $this->table;
Please login to merge, or discard this patch.