Completed
Pull Request — master (#3007)
by
unknown
02:38
created
src/Grid.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         $column = new Column($column, $label);
348 348
         $column->setGrid($this);
349 349
 
350
-        return tap($column, function ($value) {
350
+        return tap($column, function($value) {
351 351
             $this->columns->push($value);
352 352
         });
353 353
     }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         $column = new Column($column, $label);
366 366
         $column->setGrid($this);
367 367
 
368
-        return tap($column, function ($value) {
368
+        return tap($column, function($value) {
369 369
             $this->columns->prepend($value);
370 370
         });
371 371
     }
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
      */
470 470
     protected function appendActionsColumn()
471 471
     {
472
-        if (!$this->option('useActions') or $this->model->eloquent()->count()==0) {
472
+        if (!$this->option('useActions') or $this->model->eloquent()->count() == 0) {
473 473
             return;
474 474
         }
475 475
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
      */
486 486
     public function disableRowSelector()
487 487
     {
488
-        $this->tools(function ($tools) {
488
+        $this->tools(function($tools) {
489 489
             /* @var Grid\Tools $tools */
490 490
             $tools->disableBatchActions();
491 491
         });
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
 
529 529
         Column::setOriginalGridModels($collection);
530 530
 
531
-        $this->columns->map(function (Column $column) use (&$data) {
531
+        $this->columns->map(function(Column $column) use (&$data) {
532 532
             $data = $column->fill($data);
533 533
 
534 534
             $this->columnNames[] = $column->getName();
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
      */
637 637
     protected function buildRows(array $data)
638 638
     {
639
-        $this->rows = collect($data)->map(function ($model, $number) {
639
+        $this->rows = collect($data)->map(function($model, $number) {
640 640
             return new Row($number, $model);
641 641
         });
642 642
 
Please login to merge, or discard this patch.
src/Grid/Displayers/Actions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,10 +134,10 @@
 block discarded – undo
134 134
 
135 135
         $actions = array_merge($actions, $this->appends);
136 136
 
137
-        if(empty($actions)){
137
+        if (empty($actions)) {
138 138
 
139 139
 
140
-            $this->grid->columns()->search(function($value,$key)
140
+            $this->grid->columns()->search(function($value, $key)
141 141
             {
142 142
 
143 143
                 return  $value->getName() == '__actions__' ? $this->grid->columns()->forget($key) : "";
Please login to merge, or discard this patch.