@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | return $this->evaluateResult( |
71 | - $field, $testItem->count() === 0, "The value of " . implode(', ', $field['name']) . " must be unique" |
|
71 | + $field, $testItem->count() === 0, "The value of ".implode(', ', $field['name'])." must be unique" |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 |
@@ -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($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 |