@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Encore\Admin\Widgets; |
4 | 4 | |
5 | -use Illuminate\Contracts\Support\Renderable; |
|
5 | +use Illuminate\Contracts\Support\Renderable; |
|
6 | 6 | use Illuminate\Support\Arr; |
7 | 7 | |
8 | 8 | class Table extends Widget implements Renderable |
@@ -75,7 +75,7 @@ |
||
75 | 75 | return ''; |
76 | 76 | } |
77 | 77 | |
78 | - return $this->elements[$part]->map(function ($element) { |
|
78 | + return $this->elements[$part]->map(function($element) { |
|
79 | 79 | if ($element instanceof Htmlable) { |
80 | 80 | return $element->toHtml(); |
81 | 81 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | return $this->style([$styles]); |
169 | 169 | } |
170 | 170 | |
171 | - $styles = array_map(function ($style) { |
|
171 | + $styles = array_map(function($style) { |
|
172 | 172 | return 'box-'.$style; |
173 | 173 | }, $styles); |
174 | 174 |
@@ -21,20 +21,20 @@ |
||
21 | 21 | public static function environment() |
22 | 22 | { |
23 | 23 | $envs = [ |
24 | - ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
25 | - ['name' => 'Laravel version', 'value' => app()->version()], |
|
26 | - ['name' => 'CGI', 'value' => php_sapi_name()], |
|
27 | - ['name' => 'Uname', 'value' => php_uname()], |
|
28 | - ['name' => 'Server', 'value' => Arr::get($_SERVER, 'SERVER_SOFTWARE')], |
|
24 | + ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
25 | + ['name' => 'Laravel version', 'value' => app()->version()], |
|
26 | + ['name' => 'CGI', 'value' => php_sapi_name()], |
|
27 | + ['name' => 'Uname', 'value' => php_uname()], |
|
28 | + ['name' => 'Server', 'value' => Arr::get($_SERVER, 'SERVER_SOFTWARE')], |
|
29 | 29 | |
30 | - ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
31 | - ['name' => 'Session driver', 'value' => config('session.driver')], |
|
32 | - ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
30 | + ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
31 | + ['name' => 'Session driver', 'value' => config('session.driver')], |
|
32 | + ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
33 | 33 | |
34 | - ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
35 | - ['name' => 'Locale', 'value' => config('app.locale')], |
|
36 | - ['name' => 'Env', 'value' => config('app.env')], |
|
37 | - ['name' => 'URL', 'value' => config('app.url')], |
|
34 | + ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
35 | + ['name' => 'Locale', 'value' => config('app.locale')], |
|
36 | + ['name' => 'Env', 'value' => config('app.env')], |
|
37 | + ['name' => 'URL', 'value' => config('app.url')], |
|
38 | 38 | ]; |
39 | 39 | |
40 | 40 | return view('admin::dashboard.environment', compact('envs')); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $all = $fields->toArray(); |
71 | 71 | |
72 | 72 | foreach ($this->form->rows as $row) { |
73 | - $rowFields = array_map(function ($field) { |
|
73 | + $rowFields = array_map(function($field) { |
|
74 | 74 | return $field['element']; |
75 | 75 | }, $row->getFields()); |
76 | 76 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | public function getTabs() |
105 | 105 | { |
106 | 106 | // If there is no active tab, then active the first. |
107 | - if ($this->tabs->filter(function ($tab) { |
|
107 | + if ($this->tabs->filter(function($tab) { |
|
108 | 108 | return $tab['active']; |
109 | 109 | })->isEmpty()) { |
110 | 110 | $first = $this->tabs->first(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function removeFields($fields) |
50 | 50 | { |
51 | - $this->fields = $this->fields->reject(function (Field $field) use ($fields) { |
|
51 | + $this->fields = $this->fields->reject(function(Field $field) use ($fields) { |
|
52 | 52 | return in_array($field->column(), $fields); |
53 | 53 | }); |
54 | 54 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | public function render() |
12 | 12 | { |
13 | - $this->options = collect(DateTimeZone::listIdentifiers(DateTimeZone::ALL))->mapWithKeys(function ($timezone) { |
|
13 | + $this->options = collect(DateTimeZone::listIdentifiers(DateTimeZone::ALL))->mapWithKeys(function($timezone) { |
|
14 | 14 | return [$timezone => $timezone]; |
15 | 15 | })->toArray(); |
16 | 16 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $this->callInterventionMethods($image->getRealPath()); |
35 | 35 | |
36 | - return tap($this->upload($image), function () { |
|
36 | + return tap($this->upload($image), function() { |
|
37 | 37 | $this->name = null; |
38 | 38 | }); |
39 | 39 | } |
@@ -68,9 +68,9 @@ |
||
68 | 68 | |
69 | 69 | $prepare = $form->prepare($input); |
70 | 70 | |
71 | - return collect($prepare)->reject(function ($item) { |
|
71 | + return collect($prepare)->reject(function($item) { |
|
72 | 72 | return $item[NestedForm::REMOVE_FLAG_NAME] == 1; |
73 | - })->map(function ($item) { |
|
73 | + })->map(function($item) { |
|
74 | 74 | unset($item[NestedForm::REMOVE_FLAG_NAME]); |
75 | 75 | |
76 | 76 | return $item; |