@@ -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 |
@@ -70,8 +70,9 @@ |
||
70 | 70 | public function getDeleteFile($file) |
71 | 71 | { |
72 | 72 | $file = base64_decode($file); |
73 | - if(Storage::delete($file)) |
|
74 | - backWithMsg('The file has been deleted!'); |
|
73 | + if(Storage::delete($file)) { |
|
74 | + backWithMsg('The file has been deleted!'); |
|
75 | + } |
|
75 | 76 | |
76 | 77 | backWithMsg('The file did not deleted!', 'warning'); |
77 | 78 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $data['result'] = $query->take($limit)->get(); |
72 | 72 | $totalData = count($data['result']); |
73 | 73 | return $data; |
74 | - }else{ |
|
74 | + } else{ |
|
75 | 75 | $data['result'] = $query->paginate($limit); |
76 | 76 | $totalData = $data['result']->total(); |
77 | 77 | } |
@@ -61,7 +61,9 @@ |
||
61 | 61 | |
62 | 62 | $data = app(Index::class)->index($this); |
63 | 63 | |
64 | - if($this->indexReturn) return $data; |
|
64 | + if($this->indexReturn) { |
|
65 | + return $data; |
|
66 | + } |
|
65 | 67 | |
66 | 68 | return $this->cbView('crudbooster::index.index', $data); |
67 | 69 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | "callback"=>function($row) { |
53 | 53 | if($row->can_read) { |
54 | 54 | return CSSBootstrap::label('Already Read','success'); |
55 | - }else{ |
|
55 | + } else{ |
|
56 | 56 | return CSSBootstrap::label('New','danger'); |
57 | 57 | } |
58 | 58 | } |