@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | { |
53 | 53 | return collect(Arr::dot($from)) |
54 | 54 | ->keys() |
55 | - ->reject(function ($key) use ($to) { |
|
55 | + ->reject(function($key) use ($to) { |
|
56 | 56 | return Arr::has($to, $key); |
57 | 57 | }); |
58 | 58 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $this->line(''); |
67 | 67 | $this->comment("{$title}:"); |
68 | 68 | |
69 | - $diff->each(function ($key) use ($error) { |
|
69 | + $diff->each(function($key) use ($error) { |
|
70 | 70 | if ($error) { |
71 | 71 | $this->error(" {$key}"); |
72 | 72 | } else { |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | */ |
103 | 103 | protected function applyCascadeConditions() |
104 | 104 | { |
105 | - if( $this->form ) { |
|
105 | + if ($this->form) { |
|
106 | 106 | $this->form->fields() |
107 | - ->filter(function (Form\Field $field) { |
|
107 | + ->filter(function(Form\Field $field) { |
|
108 | 108 | return $field instanceof CascadeGroup |
109 | 109 | && $field->dependsOn($this) |
110 | 110 | && $this->hitsCondition($field); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | return; |
163 | 163 | } |
164 | 164 | |
165 | - $cascadeGroups = collect($this->conditions)->map(function ($condition) { |
|
165 | + $cascadeGroups = collect($this->conditions)->map(function($condition) { |
|
166 | 166 | return [ |
167 | 167 | 'class' => $this->getCascadeClass($condition['value']), |
168 | 168 | 'operator' => $condition['operator'], |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $this->value = json_encode($this->value, JSON_PRETTY_PRINT); |
49 | 49 | } |
50 | 50 | |
51 | - $this->mountPicker(function ($btn) { |
|
51 | + $this->mountPicker(function($btn) { |
|
52 | 52 | $this->addPickBtn($btn); |
53 | 53 | }); |
54 | 54 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | $value = explode($this->separator, $value); |
126 | 126 | } |
127 | 127 | |
128 | - return collect(Arr::wrap($value))->map(function ($item) use ($field) { |
|
128 | + return collect(Arr::wrap($value))->map(function($item) use ($field) { |
|
129 | 129 | return [ |
130 | 130 | 'url' => $this->field->objectUrl($item), |
131 | 131 | 'value' => $item, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $title = $this->trans('title'); |
39 | 39 | } |
40 | 40 | |
41 | - $html = ''; |
|
41 | + $html = ''; |
|
42 | 42 | |
43 | 43 | if ($async = is_subclass_of($callback, Renderable::class)) { |
44 | 44 | $this->renderable = $callback; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'html' => $html, |
55 | 55 | 'key' => $this->getKey(), |
56 | 56 | 'value' => $this->value, |
57 | - 'name' => $this->getKey() . '-' . str_replace('.', '_', $this->getColumn()->getName()), |
|
57 | + 'name' => $this->getKey().'-'.str_replace('.', '_', $this->getColumn()->getName()), |
|
58 | 58 | ]); |
59 | 59 | } |
60 | 60 | } |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | protected function addActionScripts() |
104 | 104 | { |
105 | - $this->actions->each(function ($action) { |
|
105 | + $this->actions->each(function($action) { |
|
106 | 106 | $action->setGrid($this->grid); |
107 | 107 | |
108 | 108 | if (method_exists($action, 'script')) { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | 'scopes' => $filter->getScopes(), |
23 | 23 | 'label' => $label, |
24 | 24 | 'cancel' => $filter->urlWithoutScopes(), |
25 | - 'btn_class' => uniqid() . '-filter-btn', |
|
25 | + 'btn_class' => uniqid().'-filter-btn', |
|
26 | 26 | 'expand' => $filter->expand, |
27 | 27 | 'filter_id' => $filter->getFilterID(), |
28 | 28 | ]); |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected function getGridColumns() |
35 | 35 | { |
36 | - return $this->grid->columns()->reject(function ($column) { |
|
36 | + return $this->grid->columns()->reject(function($column) { |
|
37 | 37 | return in_array($column->getName(), static::$ignored); |
38 | - })->map(function ($column) { |
|
38 | + })->map(function($column) { |
|
39 | 39 | return [$column->getName() => $column->getLabel()]; |
40 | 40 | })->collapse(); |
41 | 41 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function ignore($name) |
49 | 49 | { |
50 | - static::$ignored = array_merge(static::$ignored, (array)$name); |
|
50 | + static::$ignored = array_merge(static::$ignored, (array) $name); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $this->overrideStates($states); |
13 | 13 | |
14 | 14 | if (!Arr::isAssoc($columns)) { |
15 | - $columns = collect($columns)->map(function ($column) { |
|
15 | + $columns = collect($columns)->map(function($column) { |
|
16 | 16 | return [$column => ucfirst($column)]; |
17 | 17 | })->collapse(); |
18 | 18 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | protected function buildSwitch($name, $label = '') |
30 | 30 | { |
31 | 31 | return Admin::component('admin::grid.inline-edit.switch-group', [ |
32 | - 'class' => 'grid-switch-' . str_replace('.', '-', $name), |
|
32 | + 'class' => 'grid-switch-'.str_replace('.', '-', $name), |
|
33 | 33 | 'key' => $this->getKey(), |
34 | 34 | 'resource' => $this->getResource(), |
35 | 35 | 'name' => $this->getPayloadName($name), |