@@ -87,7 +87,7 @@ |
||
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; |
@@ -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(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 |