@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Get the view / contents that represent the component. |
| 42 | 42 | */ |
| 43 | - public function render(): View|Closure|string |
|
| 43 | + public function render(): View | Closure | string |
|
| 44 | 44 | { |
| 45 | 45 | return view('components.header'); |
| 46 | 46 | } |
@@ -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 | } |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | class DiscussPostObserver |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * Handle the "creating" event. |
|
| 16 | - */ |
|
| 15 | + * Handle the "creating" event. |
|
| 16 | + */ |
|
| 17 | 17 | public function creating(DiscussPost $discussPost): void |
| 18 | 18 | { |
| 19 | 19 | $discussPost->user_id = Auth::id(); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @throws Throwable |
| 63 | 63 | */ |
| 64 | - public function delete(): RedirectResponse|Redirector|null |
|
| 64 | + public function delete(): RedirectResponse | Redirector | null |
|
| 65 | 65 | { |
| 66 | 66 | $this->authorize('delete', $this->discussPost); |
| 67 | 67 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * |
| 64 | 64 | * @throws Throwable |
| 65 | 65 | */ |
| 66 | - public function delete(): Redirector|RedirectResponse|null |
|
| 66 | + public function delete(): Redirector | RedirectResponse | null |
|
| 67 | 67 | { |
| 68 | 68 | $this->authorize('delete', $this->discussConversation); |
| 69 | 69 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * |
| 70 | 70 | * @var Collection|array |
| 71 | 71 | */ |
| 72 | - public Collection|array $categoriesSearchable = []; |
|
| 72 | + public Collection | array $categoriesSearchable = []; |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Function to store the model. |