@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $result = \Schema::getColumnListing($table); |
| 31 | 31 | |
| 32 | - $result = array_filter($result, function ($row) { |
|
| 33 | - return ! (in_array($row, ['created_at', 'deleted_at', 'updated_at'])); |
|
| 32 | + $result = array_filter($result, function($row) { |
|
| 33 | + return !(in_array($row, ['created_at', 'deleted_at', 'updated_at'])); |
|
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | 36 | $newResult = []; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $type_field = \Schema::getColumnType($table, $row); |
| 39 | 39 | $newResult[] = ['name' => $row, 'type' => $this->getFieldType($row, $type_field)]; |
| 40 | 40 | |
| 41 | - if (! in_array($type, ['list', 'detail']) || ! starts_with($row, 'id_')) { |
|
| 41 | + if (!in_array($type, ['list', 'detail']) || !starts_with($row, 'id_')) { |
|
| 42 | 42 | continue; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | $table2 = substr($ro, 3); |
| 86 | 86 | $columns = DB::getSchemaBuilder()->getColumnListing($table2); |
| 87 | - $columns = array_filter($columns, function ($col) { |
|
| 88 | - return ! FieldDetector::isExceptional($col); |
|
| 87 | + $columns = array_filter($columns, function($col) { |
|
| 88 | + return !FieldDetector::isExceptional($col); |
|
| 89 | 89 | }); |
| 90 | 90 | |
| 91 | 91 | foreach ($columns as $col) { |