@@ -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; |
@@ -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 |
@@ -229,7 +229,7 @@ |
||
229 | 229 | |
230 | 230 | public static function stringify($input, $indent = "") |
231 | 231 | { |
232 | - if (! is_array($input)) { |
|
232 | + if (!is_array($input)) { |
|
233 | 233 | return var_export($input, true); |
234 | 234 | } |
235 | 235 | $buffer = []; |