Passed
Push — master ( c7bef9...d094e5 )
by Iman
04:30
created
src/Modules/ApiGeneratorModule/AdminApiGeneratorController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             $type_field = \Schema::getColumnType($table, $row);
145 145
             $newResult[] = ['name' => $row, 'type' => $this->getFieldType($row, $type_field)];
146 146
 
147
-            if (! in_array($type, ['list', 'detail']) || ! starts_with($row, 'id_')) {
147
+            if (!in_array($type, ['list', 'detail']) || !starts_with($row, 'id_')) {
148 148
                 continue;
149 149
             }
150 150
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $json = [];
211 211
         for ($i = 0, $_count = count($params_name); $i <= $_count; $i++) {
212
-            if (! $params_name[$i]) {
212
+            if (!$params_name[$i]) {
213 213
                 continue;
214 214
             }
215 215
             $json[] = [
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     {
236 236
         $json = [];
237 237
         for ($i = 0, $_count = count($responses_name); $i <= $_count; $i++) {
238
-            if (! $responses_name[$i]) {
238
+            if (!$responses_name[$i]) {
239 239
                 continue;
240 240
             }
241 241
             $json[] = [
@@ -308,8 +308,8 @@  discard block
 block discarded – undo
308 308
         }
309 309
         $table2 = substr($ro, 3);
310 310
         $columns = DB::getSchemaBuilder()->getColumnListing($table2);
311
-        $columns = array_filter($columns, function ($col) {
312
-            return ! FieldDetector::isExceptional($col);
311
+        $columns = array_filter($columns, function($col) {
312
+            return !FieldDetector::isExceptional($col);
313 313
         });
314 314
 
315 315
         foreach ($columns as $col) {
Please login to merge, or discard this patch.