@@ -24,15 +24,15 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $this->cbLoader(); |
| 26 | 26 | |
| 27 | - $columns = array_filter(\Schema::getColumnListing($table), function ($colName) { |
|
| 28 | - return ! (in_array($colName, ['created_at', 'deleted_at', 'updated_at'])); |
|
| 27 | + $columns = array_filter(\Schema::getColumnListing($table), function($colName) { |
|
| 28 | + return !(in_array($colName, ['created_at', 'deleted_at', 'updated_at'])); |
|
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | 31 | $result = []; |
| 32 | 32 | foreach ($columns as $colName) { |
| 33 | 33 | $result[] = ['name' => $colName, 'type' => $this->getFieldType($colName, $table)]; |
| 34 | 34 | |
| 35 | - if (! in_array($type, ['list', 'detail']) || ! starts_with($colName, 'id_')) { |
|
| 35 | + if (!in_array($type, ['list', 'detail']) || !starts_with($colName, 'id_')) { |
|
| 36 | 36 | continue; |
| 37 | 37 | } |
| 38 | 38 | $relatedTable = str_after($colName, 'id_'); |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | private function addRelatedTableColTypes($table, $result) |
| 74 | 74 | { |
| 75 | 75 | $columns = DB::getSchemaBuilder()->getColumnListing($table); |
| 76 | - $columns = array_filter($columns, function ($col) { |
|
| 77 | - return ! FieldDetector::isExceptional($col) && !starts_with($col, 'id_'); |
|
| 76 | + $columns = array_filter($columns, function($col) { |
|
| 77 | + return !FieldDetector::isExceptional($col) && !starts_with($col, 'id_'); |
|
| 78 | 78 | }); |
| 79 | 79 | |
| 80 | 80 | foreach ($columns as $col) { |