From 2ba46b417143e7aca142916c317657eb7ae0a3b0 Mon Sep 17 00:00:00 2001 From: alexi Date: Thu, 23 Feb 2023 08:53:40 +0100 Subject: [PATCH] sonar resolve bugs --- Source/Config/Validate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Config/Validate.php b/Source/Config/Validate.php index 2a585cc..ec42be2 100644 --- a/Source/Config/Validate.php +++ b/Source/Config/Validate.php @@ -43,7 +43,8 @@ class Validate public static function password(string $password) : bool { global $passwordMaxLength; - return (strlen($password) >= 8 && strlen($password) <=$passwordMaxLength && preg_match("/\d/", $password) && preg_match("#[a-zA-Z]+#", $password)); + return (strlen($password) >= 8 && strlen($password) <=$passwordMaxLength && + preg_match("/\d/", $password) && preg_match("#[a-zA-Z]+#", $password)); } /**