@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * |
| 56 | 56 | * @var Collection|array |
| 57 | 57 | */ |
| 58 | - public Collection|array $categoriesSearchable = []; |
|
| 58 | + public Collection | array $categoriesSearchable = []; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * The content of the post. |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public string $uuid; |
| 12 | 12 | |
| 13 | 13 | public function __construct( |
| 14 | - public object|array $item, |
|
| 14 | + public object | array $item, |
|
| 15 | 15 | public string $avatar = 'avatar', |
| 16 | 16 | public string $value = 'name', |
| 17 | 17 | public ?string $subValue = '', |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Get the view / contents that represent the component. |
| 30 | 30 | */ |
| 31 | - public function render(): View|Closure|string |
|
| 31 | + public function render(): View | Closure | string |
|
| 32 | 32 | { |
| 33 | 33 | return view('components.list-item'); |
| 34 | 34 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public ?string $optionAvatar = 'avatar', |
| 41 | 41 | public ?bool $valuesAsString = false, |
| 42 | 42 | public ?string $height = 'max-h-64', |
| 43 | - public Collection|array $options = new Collection(), |
|
| 43 | + public Collection | array $options = new Collection(), |
|
| 44 | 44 | public ?string $noResultText = 'No results found.', |
| 45 | 45 | |
| 46 | 46 | // Validations |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | return "'$value'"; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - return is_numeric($value) && ! str($value)->startsWith('0') ? $value : "'$value'"; |
|
| 98 | + return is_numeric($value) && !str($value)->startsWith('0') ? $value : "'$value'"; |
|
| 99 | 99 | } |
| 100 | 100 | /** |
| 101 | 101 | * Get the view / contents that represent the component. |
| 102 | 102 | */ |
| 103 | - public function render(): View|Closure|string |
|
| 103 | + public function render(): View | Closure | string |
|
| 104 | 104 | { |
| 105 | 105 | return view('components.choices'); |
| 106 | 106 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public ?string $optionLabel = 'name', |
| 27 | 27 | public ?string $optionClass = '', |
| 28 | 28 | public ?string $optionStyle = '', |
| 29 | - public Collection|array $options = new Collection(), |
|
| 29 | + public Collection | array $options = new Collection(), |
|
| 30 | 30 | |
| 31 | 31 | // Slots |
| 32 | 32 | public mixed $prepend = null, |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * Get the view / contents that represent the component. |
| 55 | 55 | */ |
| 56 | - public function render(): View|Closure|string |
|
| 56 | + public function render(): View | Closure | string |
|
| 57 | 57 | { |
| 58 | 58 | return view('components.select'); |
| 59 | 59 | } |