Completed
Push — master ( 1a19db...c922a9 )
by Song
02:53
created
src/Grid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 
356 356
         $data = $this->processFilter();
357 357
 
358
-        $this->columns->map(function (Column $column) use (&$data) {
358
+        $this->columns->map(function(Column $column) use (&$data) {
359 359
             $data = $column->fill($data);
360 360
 
361 361
             $this->columnNames[] = $column->getName();
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     protected function buildRows(array $data)
389 389
     {
390
-        $this->rows = collect($data)->map(function ($val, $key) {
390
+        $this->rows = collect($data)->map(function($val, $key) {
391 391
             $row = new Row($key, $val);
392 392
 
393 393
             $row->setKeyName($this->keyName);
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
             ->push($perPage)
672 672
             ->unique()
673 673
             ->sort()
674
-            ->map(function ($option) use ($perPage) {
674
+            ->map(function($option) use ($perPage) {
675 675
                 $selected = ($option == $perPage) ? 'selected' : '';
676 676
                 $url = app('request')->fullUrlWithQuery([$this->model->getPerPageName() => $option]);
677 677
 
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     public function button($style = 'default')
243 243
     {
244 244
         if (is_array($style)) {
245
-            $style = array_map(function ($style) {
245
+            $style = array_map(function($style) {
246 246
                 return 'btn-'.$style;
247 247
             }, $style);
248 248
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     public function progressBar($style = 'primary', $size = 'sm', $max = 100)
271 271
     {
272 272
         if (is_array($style)) {
273
-            $style = array_map(function ($style) {
273
+            $style = array_map(function($style) {
274 274
                 return 'progress-bar-'.$style;
275 275
             }, $style);
276 276
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
     {
457 457
         $originalRow = static::$originalGridData[$key];
458 458
 
459
-        return $callback->bindTo((object)$originalRow);
459
+        return $callback->bindTo((object) $originalRow);
460 460
     }
461 461
 
462 462
     /**
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
     protected function htmlEntityEncode($item)
480 480
     {
481 481
         if (is_array($item)) {
482
-            array_walk_recursive($item, function (&$value) {
482
+            array_walk_recursive($item, function(&$value) {
483 483
                 $value = htmlentities($value);
484 484
             });
485 485
         } else {
Please login to merge, or discard this patch.