Completed
Push — master ( f09455...266dce )
by Song
02:34
created
src/Grid/Concerns/CanExportGrid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             $input = array_merge($input, $constraints);
80 80
         }
81 81
 
82
-        return $this->resource() . '?' . http_build_query($input);
82
+        return $this->resource().'?'.http_build_query($input);
83 83
     }
84 84
 
85 85
     /**
Please login to merge, or discard this patch.
src/Grid/Exporters/CsvExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,17 +139,17 @@  discard block
 block discarded – undo
139 139
             call_user_func($this->callback, $this);
140 140
         }
141 141
 
142
-        $response = function () {
142
+        $response = function() {
143 143
             $handle = fopen('php://output', 'w');
144 144
             $titles = [];
145 145
 
146
-            $this->chunk(function ($collection) use ($handle, &$titles) {
146
+            $this->chunk(function($collection) use ($handle, &$titles) {
147 147
 
148 148
                 Column::setOriginalGridModels($collection);
149 149
 
150 150
                 $original = $current = $collection->toArray();
151 151
 
152
-                $this->grid->getColumns()->map(function (Column $column) use (&$current) {
152
+                $this->grid->getColumns()->map(function(Column $column) use (&$current) {
153 153
                     $current                   = $column->fill($current);
154 154
                     $this->grid->columnNames[] = $column->getName();
155 155
                 });
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     protected function getVisiableTitles()
179 179
     {
180 180
         $titles = $this->grid->visibleColumns()
181
-            ->mapWithKeys(function (Column $column) {
181
+            ->mapWithKeys(function(Column $column) {
182 182
                 return [$column->getName() => $column->getLabel()];
183 183
             });
184 184
 
Please login to merge, or discard this patch.