From fdfe50ede076339b0a40296ee8f08b04c9389cdc Mon Sep 17 00:00:00 2001 From: smarcet Date: Mon, 23 Mar 2020 19:21:21 -0300 Subject: [PATCH] Fixed typo on exception Change-Id: Icbb6396b398b5b61a36dbafd01ffab10dfb80f2a Signed-off-by: smarcet --- app/Http/Controllers/Auth/ResetPasswordController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 608ae298..6fed2964 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -63,14 +63,15 @@ final class ResetPasswordController extends Controller { try { $request = $this->user_password_reset_request_repository->getByToken($token); + if(is_null($request)) - throw new EntityNotFoundException(sprint("request not found for token %s", $token)); + throw new EntityNotFoundException(sprintf("Request not found for token %s.", $token)); if(!$request->isValid()) - throw new ValidationException("request is void"); + throw new ValidationException("Request is void."); if($request->isRedeem()){ - throw new ValidationException("request is already redeem"); + throw new ValidationException("Request is already redeem."); } return view('auth.passwords.reset')->with( [