@@ -157,11 +157,11 @@ discard block |
||
157 | 157 | call_user_func($this->callback, $this); |
158 | 158 | } |
159 | 159 | |
160 | - $response = function () { |
|
160 | + $response = function() { |
|
161 | 161 | $handle = fopen('php://output', 'w'); |
162 | 162 | $titles = []; |
163 | 163 | |
164 | - $this->chunk(function ($collection) use ($handle, &$titles) { |
|
164 | + $this->chunk(function($collection) use ($handle, &$titles) { |
|
165 | 165 | //导出中文乱码问题解决 |
166 | 166 | print(chr(0xEF).chr(0xBB).chr(0xBF)); |
167 | 167 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $original = $current = $collection->toArray(); |
171 | 171 | |
172 | - $this->grid->getColumns()->map(function (Column $column) use (&$current) { |
|
172 | + $this->grid->getColumns()->map(function(Column $column) use (&$current) { |
|
173 | 173 | $current = $column->fill($current); |
174 | 174 | $this->grid->columnNames[] = $column->getName(); |
175 | 175 | }); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | protected function getVisiableTitles() |
199 | 199 | { |
200 | 200 | $titles = $this->grid->visibleColumns() |
201 | - ->mapWithKeys(function (Column $column) { |
|
201 | + ->mapWithKeys(function(Column $column) { |
|
202 | 202 | $columnName = $column->getName(); |
203 | 203 | $columnTitle = $column->getLabel(); |
204 | 204 | if (isset($this->titleCallbacks[$columnName])) { |