Completed
Push — master ( fcb695...c2a60e )
by Song
08:26
created
src/Grid/Tools.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function disableRefreshButton()
86 86
     {
87
-        $this->tools = $this->tools->reject(function ($tool) {
87
+        $this->tools = $this->tools->reject(function($tool) {
88 88
             return $tool instanceof RefreshButton;
89 89
         });
90 90
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function disableBatchActions()
98 98
     {
99
-        $this->tools = $this->tools->reject(function ($tool) {
99
+        $this->tools = $this->tools->reject(function($tool) {
100 100
             return $tool instanceof BatchActions;
101 101
         });
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function batch(\Closure $closure)
108 108
     {
109
-        call_user_func($closure, $this->tools->first(function ($tool) {
109
+        call_user_func($closure, $this->tools->first(function($tool) {
110 110
             return $tool instanceof BatchActions;
111 111
         }));
112 112
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function render()
120 120
     {
121
-        return $this->tools->map(function ($tool) {
121
+        return $this->tools->map(function($tool) {
122 122
             if ($tool instanceof AbstractTool) {
123 123
                 return $tool->setGrid($this->grid)->render();
124 124
             }
Please login to merge, or discard this patch.
src/Grid/Displayers/Label.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             $this->value = $this->value->toArray();
13 13
         }
14 14
 
15
-        return collect((array) $this->value)->map(function ($name) use ($style) {
15
+        return collect((array) $this->value)->map(function($name) use ($style) {
16 16
             return "<span class='label label-{$style}'>$name</span>";
17 17
         })->implode('&nbsp;');
18 18
     }
Please login to merge, or discard this patch.
src/Grid/Displayers/Badge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             $this->value = $this->value->toArray();
13 13
         }
14 14
 
15
-        return collect((array) $this->value)->map(function ($name) use ($style) {
15
+        return collect((array) $this->value)->map(function($name) use ($style) {
16 16
             return "<span class='badge bg-{$style}'>$name</span>";
17 17
         })->implode('&nbsp;');
18 18
     }
Please login to merge, or discard this patch.
src/Grid/Displayers/Editable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
             'data-value' => "{$this->value}",
156 156
         ];
157 157
 
158
-        $attributes = collect($attributes)->map(function ($attribute, $name) {
158
+        $attributes = collect($attributes)->map(function($attribute, $name) {
159 159
             return "$name='$attribute'";
160 160
         })->implode(' ');
161 161
 
Please login to merge, or discard this patch.
src/Grid/Displayers/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $this->value = $this->value->toArray();
14 14
         }
15 15
 
16
-        return collect((array) $this->value)->filter()->map(function ($path) use ($server, $width, $height) {
16
+        return collect((array) $this->value)->filter()->map(function($path) use ($server, $width, $height) {
17 17
             if (url()->isValidUrl($path)) {
18 18
                 $src = $path;
19 19
             } else {
Please login to merge, or discard this patch.
src/Grid/Displayers/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'btn-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.
src/Grid/Displayers/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style = 'primary', $size = 'sm', $max = 100)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'progress-bar-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.
src/Tree/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function render()
57 57
     {
58
-        return $this->tools->map(function ($tool) {
58
+        return $this->tools->map(function($tool) {
59 59
             if ($tool instanceof Renderable) {
60 60
                 return $tool->render();
61 61
             }
Please login to merge, or discard this patch.
src/Widgets/Navbar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function render()
26 26
     {
27
-        return $this->items->reverse()->map(function ($item) {
27
+        return $this->items->reverse()->map(function($item) {
28 28
             if ($item instanceof Htmlable) {
29 29
                 return $item->toHtml();
30 30
             }
Please login to merge, or discard this patch.