Passed
Pull Request — master (#1115)
by Iman
04:19 queued 10s
created
src/Modules/ModuleGenerator/Step3Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function showForm($id)
10 10
     {
11
-        $row = ModulesRepo::find($id);;
11
+        $row = ModulesRepo::find($id); ;
12 12
 
13 13
         $columns = DbInspector::getTableCols($row->table_name);
14 14
 
Please login to merge, or discard this patch.
src/Modules/ModuleGenerator/ControllerGenerator/FieldDetector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             'isNameField' => 'name',
44 44
             'isUrlField' => 'url',
45 45
         ];
46
-        foreach ($map as $methodName => $fieldType){
46
+        foreach ($map as $methodName => $fieldType) {
47 47
             if (self::$methodName($colName)) {
48 48
                 return $fieldType;
49 49
             }
Please login to merge, or discard this patch.
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
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     private static function getControllerMethods($ctrl)
64 64
     {
65 65
         $controller_methods = (new \ReflectionClass($ctrl))->getMethods(\ReflectionMethod::IS_PUBLIC);
66
-        $controller_methods = array_filter($controller_methods, function ($method) {
66
+        $controller_methods = array_filter($controller_methods, function($method) {
67 67
             return ($method->class !== 'Illuminate\Routing\Controller' && $method->name !== 'getIndex');
68 68
         });
69 69
 
Please login to merge, or discard this patch.
src/controllers/CBController/IndexAjax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $datatableWhere = urldecode(request('datatable_where'));
16 16
         $foreignKeyName = request('fk_name');
17 17
         $foreignKeyValue = request('fk_value');
18
-        if (! $table || ! $label || ! $foreignKeyName || ! $foreignKeyValue) {
18
+        if (!$table || !$label || !$foreignKeyName || !$foreignKeyValue) {
19 19
             return response()->json([]);
20 20
         }
21 21
         $query = DB::table($table);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function getDataQuery()
52 52
     {
53 53
         $key = request('query');
54
-        if (! Cache::has($key)) {
54
+        if (!Cache::has($key)) {
55 55
             return response()->json(['items' => []]);
56 56
         }
57 57
         $query = Cache::get($key);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         if (request('q')) {
94 94
             return;
95 95
         }
96
-        $result->where(function ($where) use ($columns) {
96
+        $result->where(function($where) use ($columns) {
97 97
             foreach ($columns as $c => $col) {
98 98
                 if ($c == 0) {
99 99
                     $where->where($col, 'like', '%'.request('q').'%');
Please login to merge, or discard this patch.