Completed
Pull Request — master (#4817)
by
unknown
02:33
created
src/Grid/Exporters/CsvExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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])) {
Please login to merge, or discard this patch.