@@ -99,7 +99,7 @@ |
||
99 | 99 | if (empty($trace['class']) || !$this instanceof $trace['class']) { |
100 | 100 | # may be closure |
101 | 101 | if (isset($trace['file'], $trace['line'])) { |
102 | - $str .= $trace['file'] . $trace['line']; |
|
102 | + $str .= $trace['file'].$trace['line']; |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 | } |
@@ -67,12 +67,12 @@ |
||
67 | 67 | public function initialize(Grid $grid) |
68 | 68 | { |
69 | 69 | parent::initialize($grid); |
70 | - Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) { |
|
70 | + Event::listen(Grid::EVENT_PREPARE, function(Grid $grid) { |
|
71 | 71 | if ($this->grid !== $grid) { |
72 | 72 | return; |
73 | 73 | } |
74 | 74 | if ($grid->getInputProcessor()->getValue(static::INPUT_PARAM, false)) { |
75 | - foreach (glob(Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix() . 'public/excels/*.xlsx', GLOB_BRACE) as $fileName) { |
|
75 | + foreach (glob(Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix().'public/excels/*.xlsx', GLOB_BRACE) as $fileName) { |
|
76 | 76 | if (strpos($fileName, $this->getBaseName())) { |
77 | 77 | $this->responseWithProtectedFile($fileName); |
78 | 78 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | if (version_compare(Application::VERSION, '5.0.0', '<')) { |
178 | 178 | $provider->getPaginationFactory()->setPageName('page_unused'); |
179 | 179 | } else { |
180 | - Paginator::currentPageResolver(function () { |
|
180 | + Paginator::currentPageResolver(function() { |
|
181 | 181 | return 1; |
182 | 182 | }); |
183 | 183 | } |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $excel = app('excel'); |
231 | 231 | $excel |
232 | 232 | ->create($this->getFileName(), $this->getOnFileCreate()) |
233 | - ->save('xlsx',Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix() . 'public/excels/'); |
|
233 | + ->save('xlsx', Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix().'public/excels/'); |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | protected function escapeString($str) |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | public function getOnFileCreate() |
292 | 292 | { |
293 | 293 | if ($this->on_file_create === null) { |
294 | - $this->on_file_create = function (LaravelExcelWriter $excel) { |
|
294 | + $this->on_file_create = function(LaravelExcelWriter $excel) { |
|
295 | 295 | $excel->sheet($this->getSheetName(), $this->getOnSheetCreate()); |
296 | 296 | |
297 | 297 | }; |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | public function getOnSheetCreate() |
317 | 317 | { |
318 | 318 | if ($this->on_sheet_create === null) { |
319 | - $this->on_sheet_create = function (LaravelExcelWorksheet $sheet) { |
|
319 | + $this->on_sheet_create = function(LaravelExcelWorksheet $sheet) { |
|
320 | 320 | // for($i = 0; $i < count($data); $i++) { |
321 | 321 | // for ($j = 0; $j < count($data[$i]); $j++) { |
322 | 322 | // $sheet->appendRow(($i * 1000) + $j + 1, $data[$i][$j]); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | public function initialize(Grid $grid) |
56 | 56 | { |
57 | 57 | parent::initialize($grid); |
58 | - Event::listen(Grid::EVENT_PREPARE, function (Grid $grid) { |
|
58 | + Event::listen(Grid::EVENT_PREPARE, function(Grid $grid) { |
|
59 | 59 | $this->config = $grid->getConfig(); |
60 | 60 | if ($grid->getInputProcessor()->getValue(static::INPUT_PARAM, false)) { |
61 | 61 | dispatch(new ExportExcel($this->getDate(), $this->getBaseName(), $this->config)); |