From 652b3e29a46153345507f98e9356a66e378d815a Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 19 Nov 2024 00:35:54 +0000 Subject: [PATCH] Style --- app/Livewire/Questions/Create.php | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/Livewire/Questions/Create.php b/app/Livewire/Questions/Create.php index 6a411b295..a83fd1053 100644 --- a/app/Livewire/Questions/Create.php +++ b/app/Livewire/Questions/Create.php @@ -263,6 +263,22 @@ public function store(Request $request): void } } + /** + * Render the component. + */ + public function render(): View + { + $user = new User; + + if (filled($this->toId)) { + $user = $user->findOrFail($this->toId); + } + + return view('livewire.questions.create', [ + 'user' => $user, + ]); + } + /** * Optimize the images. */ @@ -293,22 +309,6 @@ private function optimizeImage(string $path): void $imagick->destroy(); } - /** - * Render the component. - */ - public function render(): View - { - $user = new User; - - if (filled($this->toId)) { - $user = $user->findOrFail($this->toId); - } - - return view('livewire.questions.create', [ - 'user' => $user, - ]); - } - /** * Handle the image deletes. */