@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $this->cbLoader(); |
24 | 24 | $selectedIds = request('checkbox'); |
25 | 25 | $btnName = request('button_name'); |
26 | - if (! $selectedIds) { |
|
26 | + if (!$selectedIds) { |
|
27 | 27 | CRUDBooster::redirect($_SERVER['HTTP_REFERER'], cbTrans('at_least_one_row'), 'warning'); |
28 | 28 | } |
29 | 29 | if ($btnName == 'delete') { |
30 | 30 | (new DataRemover($this))->doDeleteWithHook($selectedIds); |
31 | - $this->insertLog('log_delete', implode(',', $selectedIds) . ' - '. $this->table); |
|
31 | + $this->insertLog('log_delete', implode(',', $selectedIds).' - '.$this->table); |
|
32 | 32 | backWithMsg(cbTrans('alert_delete_selected_success')); |
33 | 33 | } |
34 | 34 | |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | $message = cbTrans('alert_action', ['action' => $action]); |
48 | 48 | |
49 | 49 | if ($this->actionButtonSelected($id_selected, $button_name) === false) { |
50 | - $message = ! empty($this->alert['message']) ? $this->alert['message'] : 'Error'; |
|
51 | - $type = ! empty($this->alert['type']) ? $this->alert['type'] : 'danger'; |
|
50 | + $message = !empty($this->alert['message']) ? $this->alert['message'] : 'Error'; |
|
51 | + $type = !empty($this->alert['type']) ? $this->alert['type'] : 'danger'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | backWithMsg($message, $type); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $this->findRow($id)->update([$column => null]); |
69 | 69 | |
70 | - $this->insertLog('log_delete_image', $id . ' - '. $this->table); |
|
70 | + $this->insertLog('log_delete_image', $id.' - '.$this->table); |
|
71 | 71 | |
72 | 72 | CRUDBooster::redirect(Request::server('HTTP_REFERER'), cbTrans('alert_delete_data_success'), 'success'); |
73 | 73 | } |