Completed
Push — master ( f09455...266dce )
by Song
02:34
created
src/Grid.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      * Get or set option for grid.
269 269
      *
270 270
      * @param string $key
271
-     * @param mixed  $value
271
+     * @param boolean  $value
272 272
      *
273 273
      * @return $this|mixed
274 274
      */
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
     /**
454 454
      * Get the grid paginator.
455 455
      *
456
-     * @return mixed
456
+     * @return Tools\Paginator
457 457
      */
458 458
     public function paginator()
459 459
     {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
     /**
808 808
      * Dynamically add columns to the grid view.
809 809
      *
810
-     * @param $method
810
+     * @param string $method
811 811
      * @param $arguments
812 812
      *
813 813
      * @return Column
Please login to merge, or discard this patch.
src/Grid/Concerns/CanExportGrid.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5 5
 use Encore\Admin\Grid;
6
-use Encore\Admin\Grid\Column;
7 6
 use Encore\Admin\Grid\Exporter;
8 7
 use Encore\Admin\Grid\Exporters\AbstractExporter;
9 8
 
Please login to merge, or discard this 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 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Encore\Admin\Grid;
6 6
 use Encore\Admin\Grid\Column;
7
-use Illuminate\Database\Eloquent\Model;
8
-use Illuminate\Support\Arr;
9
-use Illuminate\Support\Collection;
10
-use Illuminate\Support\Str;
11 7
 
12 8
 class CsvExporter extends AbstractExporter
13 9
 {
Please login to merge, or discard this 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.