Completed
Push — master ( 2c31bb...a21b6d )
by James Ekow Abaka
05:59
created
src/ModelDescription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             return null;
88 88
         }
89 89
         $relationshipDetails['local_table'] = $this->table;
90
-        if(isset($relationship['through'])) {
90
+        if (isset($relationship['through'])) {
91 91
             $relationshipDetails['through'] = $relationship['through'];
92 92
         }
93 93
         return $relationshipDetails;
Please login to merge, or discard this patch.
src/relationships/ManyHaveManyRelationship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $filter = $junctionModel->fields($this->options['junction_foreign_key'])
45 45
             ->filterBy($this->options['junction_local_key'], $data[$this->options['local_key']])
46 46
             ->fetch();
47
-        if($filter->count() == 0) {
47
+        if ($filter->count() == 0) {
48 48
             return null;
49 49
         }
50 50
         $foreignKeys = [];
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
 
79 79
         if (!isset($this->options['junction_local_key'])) {
80 80
             $this->options['junction_local_key'] = 
81
-                Text::singularize(explode('.', $this->setupTable)[1]) . '_id';
81
+                Text::singularize(explode('.', $this->setupTable)[1]).'_id';
82 82
         }
83 83
 
84 84
         if (!isset($this->options['junction_foreign_key'])) {
85 85
             $this->options['junction_foreign_key'] = 
86
-                Text::singularize($foreignModel->getDBStoreInformation()['table']) . '_id';
86
+                Text::singularize($foreignModel->getDBStoreInformation()['table']).'_id';
87 87
         }
88 88
     }
89 89
 
Please login to merge, or discard this patch.