@@ -89,7 +89,7 @@ |
||
89 | 89 | /** |
90 | 90 | * Remove reserved fields from form layout. |
91 | 91 | * |
92 | - * @param array $fields |
|
92 | + * @param string[] $fields |
|
93 | 93 | */ |
94 | 94 | public function removeReservedFields(array $fields) |
95 | 95 | { |
@@ -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 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | if (empty($selectedOption)) { |
43 | 43 | $selected = $this->choice('Please choose a role for the user', $selectedOption, null, null, true); |
44 | 44 | |
45 | - $roles = $roles->filter(function ($role) use ($selected) { |
|
45 | + $roles = $roles->filter(function($role) use ($selected) { |
|
46 | 46 | return in_array($role->name, $selected); |
47 | 47 | }); |
48 | 48 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @return mixed |
|
48 | + * @return string |
|
49 | 49 | */ |
50 | 50 | protected function getModelClass() |
51 | 51 | { |
@@ -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 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
577 | - * @param string|array|Closure $input |
|
577 | + * @param callable|null $input |
|
578 | 578 | * @param string|array $original |
579 | 579 | * |
580 | 580 | * @return array|Closure |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | /** |
786 | 786 | * Set or get value of the field. |
787 | 787 | * |
788 | - * @param null $value |
|
788 | + * @param string $value |
|
789 | 789 | * |
790 | 790 | * @return mixed |
791 | 791 | */ |
@@ -956,7 +956,7 @@ discard block |
||
956 | 956 | /** |
957 | 957 | * Add html attributes to elements. |
958 | 958 | * |
959 | - * @param array|string $attribute |
|
959 | + * @param string $attribute |
|
960 | 960 | * @param mixed $value |
961 | 961 | * |
962 | 962 | * @return $this |
@@ -1334,7 +1334,7 @@ discard block |
||
1334 | 1334 | } |
1335 | 1335 | |
1336 | 1336 | /** |
1337 | - * @param array $labelClass |
|
1337 | + * @param string[] $labelClass |
|
1338 | 1338 | * |
1339 | 1339 | * @return self |
1340 | 1340 | */ |
@@ -1389,7 +1389,7 @@ discard block |
||
1389 | 1389 | * |
1390 | 1390 | * @param string $view |
1391 | 1391 | * |
1392 | - * @return string |
|
1392 | + * @return Field |
|
1393 | 1393 | */ |
1394 | 1394 | public function setView($view): self |
1395 | 1395 | { |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class QRCode extends AbstractDisplayer |
11 | 11 | { |
12 | - protected function addScript($logo='') |
|
12 | + protected function addScript($logo = '') |
|
13 | 13 | { |
14 | 14 | $script = <<<'SCRIPT' |
15 | 15 | $('.grid-column-qrcode').popover({ |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | Admin::script($script); |
22 | 22 | |
23 | - if(!empty($logo)) { |
|
23 | + if (!empty($logo)) { |
|
24 | 24 | $css = <<<STYLE |
25 | 25 | .qr-code-wrapper { |
26 | 26 | position:relative; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | Admin::style($css); |
54 | 54 | } |
55 | 55 | |
56 | - public function display($formatter = null, $width = 150, $height = 150, $logo='') |
|
56 | + public function display($formatter = null, $width = 150, $height = 150, $logo = '') |
|
57 | 57 | { |
58 | 58 | $this->addScript($logo); |
59 | 59 |