Passed
Push — master ( 030ff7...15bf0c )
by Iman
04:26
created
src/Modules/ModuleGenerator/ControllerGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $data = compact('controllerName', 'table', 'pk', 'coloms', 'cols', 'formArrayString', 'joinList');
64 64
 
65
-        return '<?php ' . view('CbModulesGen::controller_stub', $data)->render();
65
+        return '<?php '.view('CbModulesGen::controller_stub', $data)->render();
66 66
     }
67 67
 
68 68
     /**
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         $coloms_col = array_slice($coloms, 0, 8);
77 77
         $joinList = [];
78 78
         $cols = [];
79
-        array_filter($coloms_col, function ($field) {
80
-            return (! FieldDetector::isExceptional($field) && ! FieldDetector::isPassword($field));
79
+        array_filter($coloms_col, function($field) {
80
+            return (!FieldDetector::isExceptional($field) && !FieldDetector::isPassword($field));
81 81
         });
82 82
 
83 83
         foreach ($coloms_col as $field) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $jointable = str_replace(['id_', '_id'], '', $field);
111 111
 
112
-        if (! Schema::hasTable($jointable)) {
112
+        if (!Schema::hasTable($jointable)) {
113 113
             return [$cols, $joinList];
114 114
         }
115 115
         $joincols = \Schema::getColumnListing($jointable);
Please login to merge, or discard this patch.