Passed
Push — master ( 2f9400...3b53b3 )
by Iman
03:25
created
src/Modules/ModuleGenerator/ControllerGenerator/FormConfigGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
             $props = array_get(DefaultFormConfigs::defaultConfigForFields($table), FieldDetector::detect($colName), null);
52 52
 
53
-            if($props !== null){
53
+            if ($props !== null) {
54 54
                 $input = array_merge($input, $props);
55 55
             }
56 56
 
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
         $arr = array_get([
93 93
             'string' => $default,
94 94
             'text' => ['textarea', "string|min:5", []],
95
-            'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY',]],
96
-            'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i',]],
95
+            'date' => ['date', "date", ['php_format' => 'M, d Y', 'datepicker_format' => 'M, dd YYYY', ]],
96
+            'datetime' => ['datetime', "date_format:Y-m-d H:i:s", ['php_format' => 'M, d Y H:i', ]],
97 97
             'time' => ['time', 'date_format:H:i:s', []],
98 98
             'double' => ['money', "integer|min:0", []],
99 99
             'int' => ['number', 'integer|min:0', []],
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     private static function handleForeignKey($field)
114 114
     {
115 115
         $jointable = str_replace(['id_', '_id'], '', $field);
116
-        if (! Schema::hasTable($jointable)) {
116
+        if (!Schema::hasTable($jointable)) {
117 117
             return ['', ''];
118 118
         }
119 119
         $options = [
Please login to merge, or discard this patch.