@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->value = $this->value->toArray(); |
14 | 14 | } |
15 | 15 | |
16 | - return collect((array) $this->value)->filter()->map(function ($value) use ($server) { |
|
16 | + return collect((array) $this->value)->filter()->map(function($value) use ($server) { |
|
17 | 17 | if (empty($value)) { |
18 | 18 | return ''; |
19 | 19 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public function display($style = null) |
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 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | if ($keys->isEmpty()) { |
47 | 47 | $key = $name; |
48 | 48 | } else { |
49 | - $key = $keys->shift().$keys->reduce(function ($carry, $val) { |
|
49 | + $key = $keys->shift().$keys->reduce(function($carry, $val) { |
|
50 | 50 | return $carry."[$val]"; |
51 | 51 | }); |
52 | 52 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if ($keys->isEmpty()) { |
32 | 32 | $key = $name; |
33 | 33 | } else { |
34 | - $key = $keys->shift().$keys->reduce(function ($carry, $val) { |
|
34 | + $key = $keys->shift().$keys->reduce(function($carry, $val) { |
|
35 | 35 | return $carry."[$val]"; |
36 | 36 | }); |
37 | 37 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | return ''; |
21 | 21 | } |
22 | 22 | |
23 | - $images = collect((array) $this->value)->filter()->map(function ($path) use ($server) { |
|
23 | + $images = collect((array) $this->value)->filter()->map(function($path) use ($server) { |
|
24 | 24 | if (url()->isValidUrl($path) || strpos($path, 'data:image') === 0) { |
25 | 25 | $image = $path; |
26 | 26 | } elseif ($server) { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->value = $this->value->toArray(); |
14 | 14 | } |
15 | 15 | |
16 | - return collect((array) $this->value)->map(function ($item) use ($style) { |
|
16 | + return collect((array) $this->value)->map(function($item) use ($style) { |
|
17 | 17 | if (is_array($style)) { |
18 | 18 | if (is_string($this->getColumn()->getOriginal()) || is_int($this->getColumn()->getOriginal())) { |
19 | 19 | $style = Arr::get($style, $this->getColumn()->getOriginal(), 'success'); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $columns = $titles; |
24 | 24 | } |
25 | 25 | |
26 | - $data = array_map(function ($item) use ($columns) { |
|
26 | + $data = array_map(function($item) use ($columns) { |
|
27 | 27 | $sorted = []; |
28 | 28 | |
29 | 29 | $arr = Arr::only($item, $columns); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | $attributes = array_merge($attributes, $this->attributes); |
214 | 214 | } |
215 | 215 | |
216 | - $attributes = collect($attributes)->map(function ($attribute, $name) { |
|
216 | + $attributes = collect($attributes)->map(function($attribute, $name) { |
|
217 | 217 | return "$name='$attribute'"; |
218 | 218 | })->implode(' '); |
219 | 219 |
@@ -13,7 +13,7 @@ |
||
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) || strpos($path, 'data:image') === 0) { |
18 | 18 | $src = $path; |
19 | 19 | } elseif ($server) { |