Passed
Push — master ( 71b23e...5dcda6 )
by Iman
05:33
created
src/Modules/ApiGeneratorModule/AdminColumnsTableController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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.
src/Modules/ApiGeneratorModule/AdminApiGeneratorController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $json = [];
185 185
         for ($i = 0, $_count = count($params_name); $i <= $_count; $i++) {
186
-            if (! $params_name[$i]) {
186
+            if (!$params_name[$i]) {
187 187
                 continue;
188 188
             }
189 189
             $json[] = [
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $json = [];
211 211
         for ($i = 0, $_count = count($responses_name); $i <= $_count; $i++) {
212
-            if (! $responses_name[$i]) {
212
+            if (!$responses_name[$i]) {
213 213
                 continue;
214 214
             }
215 215
             $json[] = [
Please login to merge, or discard this patch.