Passed
Push — main ( 5d7b01...0a20e8 )
by Thierry
02:19
created
src/DbAdmin/TableAdmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -218,14 +218,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/DbAdmin/Traits/TableTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,7 @@
 block discarded – undo
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 === '') {
Please login to merge, or discard this patch.