Completed
Push — master ( 88ab05...dae06d )
by Song
02:49
created
src/Grid/Tools/BatchActions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
      */
103 103
     protected function addActionScripts()
104 104
     {
105
-        $this->actions->each(function ($action) {
105
+        $this->actions->each(function($action) {
106 106
             $action->setGrid($this->grid);
107 107
 
108 108
             if (method_exists($action, 'script')) {
Please login to merge, or discard this patch.
src/Grid/Tools/FilterButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             'scopes'    => $filter->getScopes(),
23 23
             'label'     => $label,
24 24
             'cancel'    => $filter->urlWithoutScopes(),
25
-            'btn_class' => uniqid() . '-filter-btn',
25
+            'btn_class' => uniqid().'-filter-btn',
26 26
             'expand'    => $filter->expand,
27 27
             'filter_id' => $filter->getFilterID(),
28 28
         ]);
Please login to merge, or discard this patch.
src/Grid/Tools/ColumnSelector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function getGridColumns()
35 35
     {
36
-        return $this->grid->columns()->reject(function ($column) {
36
+        return $this->grid->columns()->reject(function($column) {
37 37
             return in_array($column->getName(), static::$ignored);
38
-        })->map(function ($column) {
38
+        })->map(function($column) {
39 39
             return [$column->getName() => $column->getLabel()];
40 40
         })->collapse();
41 41
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function ignore($name)
49 49
     {
50
-        static::$ignored = array_merge(static::$ignored, (array)$name);
50
+        static::$ignored = array_merge(static::$ignored, (array) $name);
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
src/Traits/HasAssets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 
326 326
         libxml_use_internal_errors(true);
327 327
 
328
-        $dom->loadHTML('<?xml encoding="utf-8" ?>' . $str);
328
+        $dom->loadHTML('<?xml encoding="utf-8" ?>'.$str);
329 329
 
330 330
         libxml_use_internal_errors(false);
331 331
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             }
346 346
 
347 347
             if ($child instanceof \DOMElement && $child->tagName == 'script') {
348
-                static::script(';(function () {' . $child->nodeValue . '})();');
348
+                static::script(';(function () {'.$child->nodeValue.'})();');
349 349
                 continue;
350 350
             }
351 351
 
Please login to merge, or discard this patch.
src/Grid/Displayers/SwitchGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $this->overrideStates($states);
13 13
 
14 14
         if (!Arr::isAssoc($columns)) {
15
-            $columns = collect($columns)->map(function ($column) {
15
+            $columns = collect($columns)->map(function($column) {
16 16
                 return [$column => ucfirst($column)];
17 17
             })->collapse();
18 18
         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function buildSwitch($name, $label = '')
30 30
     {
31 31
         return Admin::component('admin::grid.inline-edit.switch-group', [
32
-            'class'    => 'grid-switch-' . str_replace('.', '-', $name),
32
+            'class'    => 'grid-switch-'.str_replace('.', '-', $name),
33 33
             'key'      => $this->getKey(),
34 34
             'resource' => $this->getResource(),
35 35
             'name'     => $this->getPayloadName($name),
Please login to merge, or discard this patch.
src/Grid/Displayers/Expand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         return Admin::component('admin::components.column-expand', [
28 28
             'key'           => $this->getKey(),
29 29
             'url'           => $this->getLoadUrl(),
30
-            'name'          => $this->getName() . '-' . $this->getKey(),
30
+            'name'          => $this->getName().'-'.$this->getKey(),
31 31
             'html'          => $html,
32 32
             'value'         => $this->value,
33 33
             'async'         => $async,
Please login to merge, or discard this patch.
src/Grid/Displayers/SwitchDisplay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->overrideStates($states);
32 32
 
33 33
         return Admin::component('admin::grid.inline-edit.switch', [
34
-            'class'    => 'grid-switch-' . str_replace('.', '-', $this->getName()),
34
+            'class'    => 'grid-switch-'.str_replace('.', '-', $this->getName()),
35 35
             'key'      => $this->getKey(),
36 36
             'resource' => $this->getResource(),
37 37
             'name'     => $this->getPayloadName(),
Please login to merge, or discard this patch.
src/Grid/Displayers/AbstractDisplayer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,8 @@
 block discarded – undo
123 123
     {
124 124
         $keys = collect(explode('.', $name ?: $this->getName()));
125 125
 
126
-        return $keys->shift() . $keys->reduce(function ($carry, $val) {
127
-                return $carry . "[$val]";
126
+        return $keys->shift().$keys->reduce(function($carry, $val) {
127
+                return $carry."[$val]";
128 128
             });
129 129
     }
130 130
 
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
         $column = $this;
433 433
 
434
-        return $this->display(function ($value) use ($grid, $column, $abstract, $arguments) {
434
+        return $this->display(function($value) use ($grid, $column, $abstract, $arguments) {
435 435
             /** @var AbstractDisplayer $displayer */
436 436
             $displayer = new $abstract($value, $grid, $column, $this);
437 437
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 
481 481
         $grid = $this->grid;
482 482
 
483
-        return $this->display(function ($_, $column) use ($action, $grid) {
483
+        return $this->display(function($_, $column) use ($action, $grid) {
484 484
             /** @var RowAction $action */
485 485
             $action = new $action();
486 486
 
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
         $grid = $this->grid;
609 609
         $column = $this;
610 610
 
611
-        $this->display(function ($value) use ($grid, $column, $class) {
611
+        $this->display(function($value) use ($grid, $column, $class) {
612 612
             /** @var AbstractDisplayer $definition */
613 613
             $definition = new $class($value, $grid, $column, $this);
614 614
 
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     protected function htmlEntityEncode($item)
627 627
     {
628 628
         if (is_array($item)) {
629
-            array_walk_recursive($item, function (&$value) {
629
+            array_walk_recursive($item, function(&$value) {
630 630
                 $value = htmlentities($value);
631 631
             });
632 632
         } else {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      */
664 664
     protected function callSupportDisplayer($abstract, $arguments)
665 665
     {
666
-        return $this->display(function ($value) use ($abstract, $arguments) {
666
+        return $this->display(function($value) use ($abstract, $arguments) {
667 667
             if (is_array($value) || $value instanceof Arrayable) {
668 668
                 return call_user_func_array([collect($value), $abstract], $arguments);
669 669
             }
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
     protected function callBuiltinDisplayer($abstract, $arguments)
688 688
     {
689 689
         if ($abstract instanceof Closure) {
690
-            return $this->display(function ($value) use ($abstract, $arguments) {
690
+            return $this->display(function($value) use ($abstract, $arguments) {
691 691
                 return $abstract->call($this, ...array_merge([$value], $arguments));
692 692
             });
693 693
         }
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
             $grid = $this->grid;
697 697
             $column = $this;
698 698
 
699
-            return $this->display(function ($value) use ($abstract, $grid, $column, $arguments) {
699
+            return $this->display(function($value) use ($abstract, $grid, $column, $arguments) {
700 700
                 /** @var AbstractDisplayer $displayer */
701 701
                 $displayer = new $abstract($value, $grid, $column, $this);
702 702
 
Please login to merge, or discard this patch.