@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * |
282 | 282 | * @param string $column |
283 | 283 | * |
284 | - * @return mixed|string |
|
284 | + * @return string |
|
285 | 285 | */ |
286 | 286 | protected function formatColumn($column = '') |
287 | 287 | { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | } |
567 | 567 | |
568 | 568 | /** |
569 | - * @param string|array|Closure $input |
|
569 | + * @param callable|null $input |
|
570 | 570 | * @param string|array $original |
571 | 571 | * |
572 | 572 | * @return array|Closure |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | /** |
770 | 770 | * Set or get value of the field. |
771 | 771 | * |
772 | - * @param null $value |
|
772 | + * @param string $value |
|
773 | 773 | * |
774 | 774 | * @return mixed |
775 | 775 | */ |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | /** |
941 | 941 | * Add html attributes to elements. |
942 | 942 | * |
943 | - * @param array|string $attribute |
|
943 | + * @param string $attribute |
|
944 | 944 | * @param mixed $value |
945 | 945 | * |
946 | 946 | * @return $this |
@@ -1277,7 +1277,7 @@ discard block |
||
1277 | 1277 | } |
1278 | 1278 | |
1279 | 1279 | /** |
1280 | - * @param array $labelClass |
|
1280 | + * @param string[] $labelClass |
|
1281 | 1281 | * |
1282 | 1282 | * @return self |
1283 | 1283 | */ |
@@ -1332,7 +1332,7 @@ discard block |
||
1332 | 1332 | * |
1333 | 1333 | * @param string $view |
1334 | 1334 | * |
1335 | - * @return string |
|
1335 | + * @return Field |
|
1336 | 1336 | */ |
1337 | 1337 | public function setView($view) |
1338 | 1338 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * Carousel constructor. |
26 | 26 | * |
27 | - * @param array $items |
|
27 | + * @param \Illuminate\Support\Collection $items |
|
28 | 28 | */ |
29 | 29 | public function __construct($items = []) |
30 | 30 | { |
@@ -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) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | $querySelections = array_filter(explode(',', request(static::SELECT_COLUMN_NAME))); |
42 | - if ( count($querySelections) > 0) { |
|
42 | + if (count($querySelections) > 0) { |
|
43 | 43 | $show = $querySelections; |
44 | 44 | } else { |
45 | 45 | $show = $this->columnShownNames; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $this->setupScript(); |
51 | 51 | |
52 | - $lists = $columns->map(function ($val, $key) use ($show) { |
|
52 | + $lists = $columns->map(function($val, $key) use ($show) { |
|
53 | 53 | if (empty($show)) { |
54 | 54 | $checked = 'checked'; |
55 | 55 | } else { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function getGridColumns() |
101 | 101 | { |
102 | - return $this->grid->columns()->map(function (Grid\Column $column) { |
|
102 | + return $this->grid->columns()->map(function(Grid\Column $column) { |
|
103 | 103 | $name = $column->getName(); |
104 | 104 | |
105 | 105 | if (in_array($name, ['__row_selector__', '__actions__'])) { |