@@ -55,7 +55,6 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param int $multiple |
|
59 | 58 | * |
60 | 59 | * @return string |
61 | 60 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | return Admin::component('admin::components.column-expand', [ |
28 | 28 | 'key' => $this->getKey(), |
29 | 29 | 'url' => $this->getLoadUrl(), |
30 | - 'name' => $this->getName() . '-' . $this->getKey(), |
|
30 | + 'name' => $this->getName().'-'.$this->getKey(), |
|
31 | 31 | 'html' => $html, |
32 | 32 | 'value' => $this->value, |
33 | 33 | 'async' => $async, |
@@ -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 | } |
@@ -14,7 +14,6 @@ discard block |
||
14 | 14 | protected $renderable; |
15 | 15 | |
16 | 16 | /** |
17 | - * @param int $multiple |
|
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
@@ -28,7 +27,7 @@ discard block |
||
28 | 27 | /** |
29 | 28 | * @param \Closure|string $callback |
30 | 29 | * |
31 | - * @return mixed|string |
|
30 | + * @return null|string |
|
32 | 31 | */ |
33 | 32 | public function display($callback = null) |
34 | 33 | { |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -20,6 +20,4 @@ |
||
20 | 20 | }); |
21 | 21 | SCRIPT); |
22 | 22 | |
23 | - return $this; |
|
24 | - } |
|
25 | -} |
|
23 | + return $this |
|
26 | 24 | \ No newline at end of file |
@@ -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 | /** |
@@ -70,7 +70,6 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Grid inline date picker. |
72 | 72 | * |
73 | - * @param string $format |
|
74 | 73 | * |
75 | 74 | * @return $this |
76 | 75 | */ |
@@ -82,7 +81,6 @@ discard block |
||
82 | 81 | /** |
83 | 82 | * Grid inline time picker. |
84 | 83 | * |
85 | - * @param string $format |
|
86 | 84 | * |
87 | 85 | * @return $this |
88 | 86 | */ |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | { |
233 | 233 | $identifiers = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL); |
234 | 234 | |
235 | - $options = collect($identifiers)->mapWithKeys(function ($timezone) { |
|
235 | + $options = collect($identifiers)->mapWithKeys(function($timezone) { |
|
236 | 236 | return [$timezone => $timezone]; |
237 | 237 | })->toArray(); |
238 | 238 | |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * |
295 | 295 | * @return $this |
296 | 296 | */ |
297 | - public function switch(array $states = []) |
|
297 | + public function switch (array $states = []) |
|
298 | 298 | { |
299 | 299 | return $this->displayUsing(Displayers\SwitchDisplay::class, [$states]); |
300 | 300 | } |
@@ -9,6 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | /** |
11 | 11 | * @param int $multiple |
12 | + * @param string|null $selectable |
|
12 | 13 | * |
13 | 14 | * @return string |
14 | 15 | */ |
@@ -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), |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $this->overrideStates($states); |
32 | 32 | |
33 | 33 | return Admin::component('admin::grid.inline-edit.switch', [ |
34 | - 'class' => 'grid-switch-' . str_replace('.', '-', $this->getName()), |
|
34 | + 'class' => 'grid-switch-'.str_replace('.', '-', $this->getName()), |
|
35 | 35 | 'key' => $this->getKey(), |
36 | 36 | 'resource' => $this->getResource(), |
37 | 37 | 'name' => $this->getPayloadName(), |