@@ -218,14 +218,14 @@ discard block |
||
218 | 218 | $target .= '<b>' . $this->util->html($foreignKey->schema) . '</b>.'; |
219 | 219 | } |
220 | 220 | $target = $this->util->html($foreignKey->table) . |
221 | - '(' . implode(', ', array_map(function ($key) { |
|
221 | + '(' . implode(', ', array_map(function($key) { |
|
222 | 222 | return $this->util->html($key); |
223 | 223 | }, $foreignKey->target)) . ')'; |
224 | 224 | $details[] = [ |
225 | 225 | 'name' => $this->util->html($name), |
226 | 226 | 'source' => '<i>' . implode( |
227 | 227 | '</i>, <i>', |
228 | - array_map(function ($key) { |
|
228 | + array_map(function($key) { |
|
229 | 229 | return $this->util->html($key); |
230 | 230 | }, $foreignKey->source) |
231 | 231 | ) . '</i>', |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | private function makeTableAttrs(array $values, string $table = '') |
370 | 370 | { |
371 | 371 | // From create.inc.php |
372 | - $values['fields'] = (array)$values['fields']; |
|
372 | + $values['fields'] = (array) $values['fields']; |
|
373 | 373 | if ($values['autoIncrementCol']) { |
374 | 374 | $values['fields'][$values['autoIncrementCol']]['autoIncrement'] = true; |
375 | 375 | } |
@@ -141,8 +141,7 @@ |
||
141 | 141 | { |
142 | 142 | $foreignKey = $this->foreignKeys[$field->type] ?? null; |
143 | 143 | //! Can collide with user defined type |
144 | - $typeField = ($foreignKey === null ? $field : |
|
145 | - TableFieldEntity::make($this->referencableTables[$foreignKey])); |
|
144 | + $typeField = ($foreignKey === null ? $field : TableFieldEntity::make($this->referencableTables[$foreignKey])); |
|
146 | 145 | $processedField = $this->util->processField($field, $typeField); |
147 | 146 | $origField = $this->fields[$this->fieldName] ?? null; |
148 | 147 | if ($this->fieldName === '') { |