Passed
Push — master ( aa64af...5cd990 )
by Iman
04:21
created
src/Modules/ApiGeneratorModule/AdminColumnsTableController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@  discard block
 block discarded – undo
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
         $newResult = [];
32 32
         foreach ($columns as $colName) {
33 33
             $newResult[] = ['name' => $colName, 'type' => $this->getFieldType($colName, \Schema::getColumnType($table, $colName))];
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.