@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | private function checkHideForm() |
86 | 86 | { |
87 | - if (! count($this->hide_form)) { |
|
87 | + if (!count($this->hide_form)) { |
|
88 | 88 | return null; |
89 | 89 | } |
90 | 90 | foreach ($this->form as $i => $f) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | $type = $ro['type'] ?: 'text'; |
153 | 153 | $inputdata = request($name); |
154 | 154 | |
155 | - if (! $name || $ro['exception']) { |
|
155 | + if (!$name || $ro['exception']) { |
|
156 | 156 | continue; |
157 | 157 | } |
158 | 158 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $this->table('cms_settings')->where('name', 'default_paper_size')->update(['content' => $papersize]); |
20 | 20 | } |
21 | 21 | $format = request('fileformat'); |
22 | - if(in_array($format, ['pdf', 'xls', 'csv'])) |
|
22 | + if (in_array($format, ['pdf', 'xls', 'csv'])) |
|
23 | 23 | { |
24 | 24 | return app(IndexExport::class)->{$format}($filename, $indexContent, $paperorientation, $papersize); |
25 | 25 | } |
@@ -17,12 +17,12 @@ |
||
17 | 17 | $data['page_menu'] = Route::getCurrentRoute()->getActionName(); |
18 | 18 | $data['page_title'] = 'Import Data '.CB::getCurrentModule()->name; |
19 | 19 | |
20 | - if (! request('file') || request('import')) { |
|
20 | + if (!request('file') || request('import')) { |
|
21 | 21 | return $this->cbView('crudbooster::import', $data); |
22 | 22 | } |
23 | 23 | |
24 | 24 | $file = 'storage'.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.base64_decode(request('file')); |
25 | - $rows = Excel::load($file, function ($reader) { |
|
25 | + $rows = Excel::load($file, function($reader) { |
|
26 | 26 | })->get(); |
27 | 27 | |
28 | 28 | session()->put('total_data_import', count($rows)); |