@@ -84,7 +84,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -12,7 +12,7 @@ |
||
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(' '); |
18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
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(' '); |
18 | 18 | } |
@@ -155,7 +155,7 @@ |
||
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 |
@@ -6,7 +6,7 @@ |
||
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 |
@@ -6,7 +6,7 @@ |
||
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 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | if (is_array($permission)) { |
25 | - collect($permission)->each(function ($permission) { |
|
25 | + collect($permission)->each(function($permission) { |
|
26 | 26 | call_user_func([Permission::class, 'check'], $permission); |
27 | 27 | }); |
28 | 28 |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function prepareValue($key, $record) |
163 | 163 | { |
164 | - $field = $this->fields->first(function (Field $field) use ($key) { |
|
164 | + $field = $this->fields->first(function(Field $field) use ($key) { |
|
165 | 165 | return in_array($key, (array) $field->column()); |
166 | 166 | }); |
167 | 167 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | if (array_key_exists($key, $this->original)) { |
185 | 185 | $values = $this->original[$key]; |
186 | 186 | |
187 | - $this->fields->each(function (Field $field) use ($values) { |
|
187 | + $this->fields->each(function(Field $field) use ($values) { |
|
188 | 188 | $field->setOriginal($values); |
189 | 189 | }); |
190 | 190 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function fill(array $data) |
201 | 201 | { |
202 | - $this->fields->each(function (Field $field) use ($data) { |
|
202 | + $this->fields->each(function(Field $field) use ($data) { |
|
203 | 203 | $field->fill($data); |
204 | 204 | }); |
205 | 205 |
@@ -82,7 +82,7 @@ |
||
82 | 82 | public function getTabs() |
83 | 83 | { |
84 | 84 | // If there is no active tab, then active the first. |
85 | - if ($this->tabs->filter(function ($tab) { |
|
85 | + if ($this->tabs->filter(function($tab) { |
|
86 | 86 | return $tab['active']; |
87 | 87 | })->isEmpty()) { |
88 | 88 | $first = $this->tabs->first(); |