From e22818080a470e53afdb9510568db3c8ba189b9b Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Sun, 12 Dec 2021 10:57:44 +0330 Subject: [PATCH] refactor --- .../AppSection/Authentication/Mails/ForgotPassword.php | 7 ++++--- .../UI/API/Controllers/ResetPasswordController.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php b/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php index 1e64f38c1..8a8b69718 100644 --- a/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php +++ b/app/Containers/AppSection/Authentication/Mails/ForgotPassword.php @@ -2,8 +2,8 @@ namespace App\Containers\AppSection\Authentication\Mails; +use App\Containers\AppSection\User\Models\User; use App\Ship\Parents\Mails\Mail; -use App\Ship\Parents\Models\UserModel; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; @@ -12,10 +12,11 @@ class ForgotPassword extends Mail implements ShouldQueue use Queueable; public function __construct( - protected UserModel $recipient, + protected User $recipient, protected string $token, protected string $reseturl - ) { + ) + { } public function build(): static diff --git a/app/Containers/AppSection/Authentication/UI/API/Controllers/ResetPasswordController.php b/app/Containers/AppSection/Authentication/UI/API/Controllers/ResetPasswordController.php index 6e828ed7f..b356b4a62 100644 --- a/app/Containers/AppSection/Authentication/UI/API/Controllers/ResetPasswordController.php +++ b/app/Containers/AppSection/Authentication/UI/API/Controllers/ResetPasswordController.php @@ -13,7 +13,7 @@ class ResetPasswordController extends ApiController { /** - * @throws \App\Containers\AppSection\Authentication\Exceptions\InvalidResetPasswordTokenException + * @throws InvalidResetPasswordTokenException * @throws NotFoundException * @throws UpdateResourceFailedException */