Completed
Push — master ( a21b6d...7da92d )
by James Ekow Abaka
02:52
created
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($this->setupTable) . '_id';
81
+                Text::singularize($this->setupTable).'_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.