From cfcf77c40ce795f8c5f78eadc67daeb804c1c1f4 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Feb 2023 14:03:27 +0100 Subject: [PATCH] SonarQube code smells resolve #16 --- Source/API/script/Config/config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/API/script/Config/config.php b/Source/API/script/Config/config.php index 1bf7188..836d091 100644 --- a/Source/API/script/Config/config.php +++ b/Source/API/script/Config/config.php @@ -8,10 +8,9 @@ function connect() $login = "root"; try { - $connection = new Connection($dsn ,$login,"root"); + $connection = new Connection($dsn, $login,"root"); } catch (PDOException $e) { http_response_code(404); - return http_response_code(); }