@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | $datatableWhere = urldecode(request('datatable_where')); |
| 12 | 12 | $foreign_key_name = request('fk_name'); |
| 13 | 13 | $foreign_key_value = request('fk_value'); |
| 14 | - if (! $table || ! $label || ! $foreign_key_name || ! $foreign_key_value) { |
|
| 14 | + if (!$table || !$label || !$foreign_key_name || !$foreign_key_value) { |
|
| 15 | 15 | return response()->json([]); |
| 16 | 16 | } |
| 17 | 17 | $query = DB::table($table); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $result = DB::table($data['table']); |
| 35 | 35 | if (request('q')) { |
| 36 | - $result->where(function ($where) use ($columns) { |
|
| 36 | + $result->where(function($where) use ($columns) { |
|
| 37 | 37 | foreach ($columns as $c => $col) { |
| 38 | 38 | if ($c == 0) { |
| 39 | 39 | $where->where($col, 'like', '%'.request('q').'%'); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | public function getDataQuery() |
| 62 | 62 | { |
| 63 | 63 | $key = request('query'); |
| 64 | - if (! Cache::has($key)) { |
|
| 64 | + if (!Cache::has($key)) { |
|
| 65 | 65 | return response()->json(['items' => []]); |
| 66 | 66 | } |
| 67 | 67 | $query = Cache::get($key); |
@@ -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)); |