From 7ab85d20503b9dee38b77dfbb1353e1fabf12b52 Mon Sep 17 00:00:00 2001 From: Alexis Date: Sun, 2 Apr 2023 12:30:20 +0200 Subject: [PATCH] Code smells and bugs resolve 6 --- Source/Exceptions/InexistantLoginException.php | 2 +- Source/Exceptions/InvalidLoginOrPasswordException.php | 3 ++- Source/Exceptions/InvalidUsernameOrPasswordException.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Exceptions/InexistantLoginException.php b/Source/Exceptions/InexistantLoginException.php index e7ce2f5..1bd0d15 100644 --- a/Source/Exceptions/InexistantLoginException.php +++ b/Source/Exceptions/InexistantLoginException.php @@ -10,4 +10,4 @@ class InexistantLoginException extends Exception { parent::__construct("Identifiant inexistant"); } -} \ No newline at end of file +} diff --git a/Source/Exceptions/InvalidLoginOrPasswordException.php b/Source/Exceptions/InvalidLoginOrPasswordException.php index 6cc63a6..ffbfb91 100644 --- a/Source/Exceptions/InvalidLoginOrPasswordException.php +++ b/Source/Exceptions/InvalidLoginOrPasswordException.php @@ -3,10 +3,11 @@ namespace Exceptions; use Exception; + class InvalidLoginOrPasswordException extends Exception { public function __construct() { parent::__construct("Identifiant ou mot de passe invalide"); } -} \ No newline at end of file +} diff --git a/Source/Exceptions/InvalidUsernameOrPasswordException.php b/Source/Exceptions/InvalidUsernameOrPasswordException.php index 8e89b8d..c8920e9 100644 --- a/Source/Exceptions/InvalidUsernameOrPasswordException.php +++ b/Source/Exceptions/InvalidUsernameOrPasswordException.php @@ -10,4 +10,4 @@ class InvalidUsernameOrPasswordException extends Exception { parent::__construct($message, $code, $previous); } -} \ No newline at end of file +}