@@ -44,7 +44,7 @@ discard block |
||
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 |
||
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 |