@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | if (file_exists(controller_path($row->controller))) { |
40 | 40 | $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller)); |
41 | - }else{ |
|
41 | + } else{ |
|
42 | 42 | $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php'); |
43 | 43 | } |
44 | 44 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | if($this->confirm('Do you have setting the database configuration at .env ?')) { |
57 | 57 | $this->installCrudbooster(); |
58 | - }else{ |
|
58 | + } else{ |
|
59 | 59 | $this->info('Setup Aborted !'); |
60 | 60 | $this->info('Please setting the database configuration for first !'); |
61 | 61 | } |
@@ -81,12 +81,12 @@ |
||
81 | 81 | $result = []; |
82 | 82 | if ($actionType == 'list') { |
83 | 83 | $result = $this->handleListAction($table, $orderby, $data, $responses_fields); |
84 | - }elseif ($actionType == 'detail') { |
|
84 | + } elseif ($actionType == 'detail') { |
|
85 | 85 | $result = $this->handleDetailsAction($data, $parameters, $posts, $responses_fields); |
86 | - }elseif ($actionType == 'delete') { |
|
86 | + } elseif ($actionType == 'delete') { |
|
87 | 87 | $result = $this->handleDeleteAction($table, $data); |
88 | 88 | } |
89 | - }elseif (in_array($actionType, ['save_add', 'save_edit'])) { |
|
89 | + } elseif (in_array($actionType, ['save_add', 'save_edit'])) { |
|
90 | 90 | $rowAssign = array_filter($input_validator, function ($column) use ($table) { |
91 | 91 | return Schema::hasColumn($table, $column); |
92 | 92 | }, ARRAY_FILTER_USE_KEY); |