Passed
Push — master ( 5dcda6...4fdfa9 )
by Iman
09:23
created
src/Modules/ApiGeneratorModule/AdminColumnsTableController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.