@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Get the view / contents that represent the component. |
| 47 | 47 | */ |
| 48 | - public function render(): View|Closure|string |
|
| 48 | + public function render(): View | Closure | string |
|
| 49 | 49 | { |
| 50 | 50 | return view('components.button'); |
| 51 | 51 | } |
@@ -41,12 +41,12 @@ discard block |
||
| 41 | 41 | $this->uuid = md5(serialize($this)); |
| 42 | 42 | |
| 43 | 43 | // Cannot use a left icon when password toggle should be shown on the left side. |
| 44 | - if (($this->icon && ! $this->right) && ! $this->onlyPassword) { |
|
| 44 | + if (($this->icon && !$this->right) && !$this->onlyPassword) { |
|
| 45 | 45 | throw new Exception("Cannot use `icon` without providing `right` or `onlyPassword`."); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // Cannot use a right icon when password toggle should be shown on the right side. |
| 49 | - if (($this->iconRight && $this->right) && ! $this->onlyPassword) { |
|
| 49 | + if (($this->iconRight && $this->right) && !$this->onlyPassword) { |
|
| 50 | 50 | throw new Exception("Cannot use `iconRight` when providing `right` and not providing `onlyPassword`."); |
| 51 | 51 | } |
| 52 | 52 | } |
@@ -63,18 +63,18 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | public function placeToggleLeft(): bool |
| 65 | 65 | { |
| 66 | - return (! $this->icon && ! $this->right) && ! $this->onlyPassword; |
|
| 66 | + return (!$this->icon && !$this->right) && !$this->onlyPassword; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | public function placeToggleRight(): bool |
| 70 | 70 | { |
| 71 | - return (! $this->iconRight && $this->right) && ! $this->onlyPassword; |
|
| 71 | + return (!$this->iconRight && $this->right) && !$this->onlyPassword; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Get the view / contents that represent the component. |
| 76 | 76 | */ |
| 77 | - public function render(): View|Closure|string |
|
| 77 | + public function render(): View | Closure | string |
|
| 78 | 78 | { |
| 79 | 79 | return view('components.password'); |
| 80 | 80 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * Get the view / contents that represent the component. |
| 41 | 41 | */ |
| 42 | - public function render(): View|Closure|string |
|
| 42 | + public function render(): View | Closure | string |
|
| 43 | 43 | { |
| 44 | 44 | return view('components.checkbox'); |
| 45 | 45 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Get the view / contents that represent the component. |
| 20 | 20 | */ |
| 21 | - public function render(): View|Closure|string |
|
| 21 | + public function render(): View | Closure | string |
|
| 22 | 22 | { |
| 23 | 23 | return view('components.theme-toggle'); |
| 24 | 24 | } |
@@ -35,13 +35,13 @@ |
||
| 35 | 35 | |
| 36 | 36 | // Cast the value the same as the old value to not change the type |
| 37 | 37 | if (is_bool($setting->value)) { |
| 38 | - $value = (bool)$value; |
|
| 38 | + $value = (bool) $value; |
|
| 39 | 39 | } elseif (is_int($setting->value)) { |
| 40 | - $value = (int)$value; |
|
| 40 | + $value = (int) $value; |
|
| 41 | 41 | } elseif (is_float($setting->value)) { |
| 42 | - $value = (float)$value; |
|
| 42 | + $value = (float) $value; |
|
| 43 | 43 | } else { |
| 44 | - $value = (string)$value; |
|
| 44 | + $value = (string) $value; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | // Assign the new value dans save it. |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class Settings |
| 13 | 13 | { |
| 14 | - protected null|array $context = [ |
|
| 14 | + protected null | array $context = [ |
|
| 15 | 15 | 'model_type' => null, |
| 16 | 16 | 'model_id' => null |
| 17 | 17 | ]; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return $this |
| 74 | 74 | */ |
| 75 | - public function setContext(Model|array|null $context = null): self |
|
| 75 | + public function setContext(Model | array | null $context = null): self |
|
| 76 | 76 | { |
| 77 | 77 | if ($context instanceof Model) { |
| 78 | 78 | $this->context['model_type'] = get_class($context); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Illuminate\Contracts\View\Factory; |
| 8 | 8 | use Illuminate\Foundation\Application; |
| 9 | 9 | use Illuminate\Http\RedirectResponse; |
| 10 | -use Illuminate\Http\Request ; |
|
| 10 | +use Illuminate\Http\Request; |
|
| 11 | 11 | use Illuminate\Support\Facades\App; |
| 12 | 12 | use Illuminate\Support\Facades\Auth; |
| 13 | 13 | use Illuminate\Support\Facades\Mail; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Get the view / contents that represent the component. |
| 39 | 39 | */ |
| 40 | - public function render(): View|Closure|string |
|
| 40 | + public function render(): View | Closure | string |
|
| 41 | 41 | { |
| 42 | 42 | return view('components.textarea'); |
| 43 | 43 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * Get the view / contents that represent the component. |
| 73 | 73 | */ |
| 74 | - public function render(): View|Closure|string |
|
| 74 | + public function render(): View | Closure | string |
|
| 75 | 75 | { |
| 76 | 76 | return view('components.markdown'); |
| 77 | 77 | } |