@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function removeFilterByID($id) |
75 | 75 | { |
76 | - $this->filters = $this->filters->reject(function (AbstractFilter $filter) use ($id) { |
|
76 | + $this->filters = $this->filters->reject(function(AbstractFilter $filter) use ($id) { |
|
77 | 77 | return $filter->getId() == $id; |
78 | 78 | }); |
79 | 79 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | 'title' => $this->message, |
35 | 35 | ]; |
36 | 36 | |
37 | - $data = collect($data)->map(function ($val, $key) { |
|
37 | + $data = collect($data)->map(function($val, $key) { |
|
38 | 38 | return "data-{$key}=\"{$val}\""; |
39 | 39 | })->implode(' '); |
40 | 40 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $show = $this->grid->visibleColumnNames(); |
48 | 48 | |
49 | - $lists = $this->getGridColumns()->map(function ($label, $key) use ($show) { |
|
49 | + $lists = $this->getGridColumns()->map(function($label, $key) use ($show) { |
|
50 | 50 | if (empty($show)) { |
51 | 51 | $checked = 'checked'; |
52 | 52 | } else { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | protected function getGridColumns() |
100 | 100 | { |
101 | - return $this->grid->columns()->map(function (Grid\Column $column) { |
|
101 | + return $this->grid->columns()->map(function(Grid\Column $column) { |
|
102 | 102 | $name = $column->getName(); |
103 | 103 | |
104 | 104 | if ($this->isColumnIgnored($name)) { |
@@ -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 |
@@ -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) { |