Completed
Push — master ( eb6ee6...1cde08 )
by Iman
14s
created
src/Modules/ModuleGenerator/ControllerGenerator/FormConfigGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
 
127 127
         $arr = array_get([
128 128
             'text' => ['textarea', "string|min:5", []],
129
-            'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY',]],
130
-            'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i',]],
129
+            'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY', ]],
130
+            'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i', ]],
131 131
             'time' => ['time', 'date_format:H:i:s', []],
132 132
             'double' => ['money', "integer|min:0", []],
133 133
             'int' => ['number', 'integer|min:0', []],
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     private static function handleForeignKey($field)
148 148
     {
149 149
         $jointable = str_replace(['id_', '_id'], '', $field);
150
-        if (! Schema::hasTable($jointable)) {
150
+        if (!Schema::hasTable($jointable)) {
151 151
             return ['', ''];
152 152
         }
153 153
         $options = [
Please login to merge, or discard this patch.
src/CBCoreModule/RouteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     {
72 72
         $ctrl = self::getControllerPath($controller, $namespace);
73 73
         $controller_methods = (new \ReflectionClass($ctrl))->getMethods(\ReflectionMethod::IS_PUBLIC);
74
-        $controller_methods = array_filter($controller_methods, function ($method) {
74
+        $controller_methods = array_filter($controller_methods, function($method) {
75 75
             return ($method->class !== 'Illuminate\Routing\Controller' && $method->name !== 'getIndex');
76 76
         });
77 77
 
Please login to merge, or discard this patch.