@@ -2,7 +2,7 @@ |
||
| 2 | 2 | namespace Xetaravel\Http\Controllers; |
| 3 | 3 | |
| 4 | 4 | use Illuminate\Http\RedirectResponse; |
| 5 | -use Illuminate\Http\Request ; |
|
| 5 | +use Illuminate\Http\Request; |
|
| 6 | 6 | use Xetaravel\Models\Newsletter; |
| 7 | 7 | use Xetaravel\Models\Repositories\NewsletterRepository; |
| 8 | 8 | use Xetaravel\Models\Validators\NewsletterValidator; |
@@ -85,8 +85,8 @@ |
||
| 85 | 85 | Mail::to(config('xetaravel.site.contact_email'))->send(new Contact($details)); |
| 86 | 86 | |
| 87 | 87 | return redirect() |
| 88 | - ->route('page.contact') |
|
| 89 | - ->with('success', 'Thanks for contacting me ! I will answer you as fast as I can !'); |
|
| 88 | + ->route('page.contact') |
|
| 89 | + ->with('success', 'Thanks for contacting me ! I will answer you as fast as I can !'); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -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; |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | final class GithubPullRequestParser implements InlineParserInterface |
| 10 | 10 | { |
| 11 | 11 | // Regex used to match Github pull request link. |
| 12 | - public const REGEXP_PURLLREQUEST = '\bhttps?:\/\/github\.com\/(?<repo>[\w-]+\/[\w-]+)\/'. |
|
| 12 | + public const REGEXP_PURLLREQUEST = '\bhttps?:\/\/github\.com\/(?<repo>[\w-]+\/[\w-]+)\/' . |
|
| 13 | 13 | '(?<type>issues|pull)\/(?<issue>\d+)'; |
| 14 | 14 | |
| 15 | 15 | public function getMatchDefinition(): InlineParserMatch |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Psr\Container\NotFoundExceptionInterface; |
| 8 | 8 | use Xetaravel\Settings\Settings; |
| 9 | 9 | |
| 10 | -if (! function_exists('settings')) { |
|
| 10 | +if (!function_exists('settings')) { |
|
| 11 | 11 | /** |
| 12 | 12 | * @throws ContainerExceptionInterface |
| 13 | 13 | * @throws NotFoundExceptionInterface |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $this->uuid = md5(serialize($this)); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function icon(): string|Stringable |
|
| 22 | + public function icon(): string | Stringable |
|
| 23 | 23 | { |
| 24 | 24 | $name = Str::of($this->name); |
| 25 | 25 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Get the view / contents that represent the component. |
| 37 | 37 | */ |
| 38 | - public function render(): View|Closure|string |
|
| 38 | + public function render(): View | Closure | string |
|
| 39 | 39 | { |
| 40 | 40 | return view('components.icon'); |
| 41 | 41 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Get the view / contents that represent the component. |
| 25 | 25 | */ |
| 26 | - public function render(): View|Closure|string |
|
| 26 | + public function render(): View | Closure | string |
|
| 27 | 27 | { |
| 28 | 28 | return view('components.form'); |
| 29 | 29 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * Get the view / contents that represent the component. |
| 64 | 64 | */ |
| 65 | - public function render(): View|Closure|string |
|
| 65 | + public function render(): View | Closure | string |
|
| 66 | 66 | { |
| 67 | 67 | return view('components.input'); |
| 68 | 68 | } |
@@ -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 | } |