@@ -46,7 +46,7 @@ |
||
46 | 46 | private function download($value) |
47 | 47 | { |
48 | 48 | $url = (strpos($value, 'http://')) ? $value : asset($value).'?download=1'; |
49 | - if (! $value) { |
|
49 | + if (!$value) { |
|
50 | 50 | return " - "; |
51 | 51 | } |
52 | 52 | return "<a class='btn btn-xs btn-primary' href='$url' target='_blank' title='Download File'><i class='fa fa-download'>".cbTrans('button_download_file')."</i></a>"; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | //Looping Data Input Again After Insert |
19 | 19 | foreach ($data as $row) { |
20 | 20 | $name = $row['name']; |
21 | - if (! $name) { |
|
21 | + if (!$name) { |
|
22 | 22 | continue; |
23 | 23 | } |
24 | 24 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | list($pivotTable, $foreignKey2, $foreignKey) = $this->deleteFromPivot($row, $id); |
56 | 56 | |
57 | - if (! $inputData) { |
|
57 | + if (!$inputData) { |
|
58 | 58 | return null; |
59 | 59 | } |
60 | 60 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function __construct($ctrl) |
17 | 17 | { |
18 | - $this->ctrl = $ctrl; |
|
18 | + $this->ctrl = $ctrl; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function showForm($id) |
12 | 12 | { |
13 | - $controller = ModulesRepo::getControllerName($id);; |
|
13 | + $controller = ModulesRepo::getControllerName($id); ; |
|
14 | 14 | |
15 | 15 | $data = []; |
16 | 16 | $data['id'] = $id; |
@@ -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 |
@@ -8,10 +8,10 @@ discard block |
||
8 | 8 | |
9 | 9 | class Step1Handler |
10 | 10 | { |
11 | - public function showForm($id=null) |
|
11 | + public function showForm($id = null) |
|
12 | 12 | { |
13 | 13 | $data['id'] = $id; |
14 | - return view('CbModulesGen::step1',$data); |
|
14 | + return view('CbModulesGen::step1', $data); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function handleFormSubmit() |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $icon = request('icon'); |
22 | 22 | $path = request('path'); |
23 | 23 | |
24 | - if (! request('id')) { |
|
24 | + if (!request('id')) { |
|
25 | 25 | if (ModulesRepo::modulePathExists($path)) { |
26 | 26 | //todo: should be translated |
27 | 27 | backWithMsg('Sorry the slug has already exists, please choose another !', 'warning'); |
@@ -38,7 +38,7 @@ discard block |
||
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 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function boot() |
15 | 15 | { |
16 | 16 | $this->app['view']->addNamespace('CbFileManager', __DIR__.'/views'); |
17 | - $this->loadRoutesFrom( __DIR__.'/file_manager_routes.php'); |
|
17 | + $this->loadRoutesFrom(__DIR__.'/file_manager_routes.php'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | public function send($regID, $data) |
12 | 12 | { |
13 | - if (! $data['title'] || ! $data['content']) { |
|
13 | + if (!$data['title'] || !$data['content']) { |
|
14 | 14 | return 'title , content null !'; |
15 | 15 | } |
16 | 16 |
@@ -52,9 +52,9 @@ |
||
52 | 52 | */ |
53 | 53 | private function exportExcelAs($filename, $response, $orientation, $fmt) |
54 | 54 | { |
55 | - return Excel::create($filename, function ($excel) use ($response, $orientation, $filename) { |
|
55 | + return Excel::create($filename, function($excel) use ($response, $orientation, $filename) { |
|
56 | 56 | $excel->setTitle($filename)->setCreator("crudbooster.com")->setCompany(cbGetsetting('appname')); |
57 | - $excel->sheet($filename, function ($sheet) use ($response, $orientation) { |
|
57 | + $excel->sheet($filename, function($sheet) use ($response, $orientation) { |
|
58 | 58 | $sheet->setOrientation($orientation); |
59 | 59 | $sheet->loadview('crudbooster::export', $response); |
60 | 60 | }); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | - if (! $full) { |
|
34 | + if (!$full) { |
|
35 | 35 | $this->string = array_slice($this->string, 0, 1); |
36 | 36 | } |
37 | 37 |