From b746b63879fc91adc5e7e10e8116f343a2133ccd Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 31 Oct 2023 22:44:03 +0000 Subject: [PATCH] Apply fixes from StyleCI --- Web/authentication/sessionManager.php | 3 ++- Web/event/login.php | 2 +- Web/loader.php | 4 ++-- Web/security/inputManager.php | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Web/authentication/sessionManager.php b/Web/authentication/sessionManager.php index 5e38e82..3f475ab 100644 --- a/Web/authentication/sessionManager.php +++ b/Web/authentication/sessionManager.php @@ -18,6 +18,7 @@ public function end(): bool if ($this->active()) { session_unset(); session_destroy(); + return true; } else { return false; @@ -32,4 +33,4 @@ public function authTokens(): bool return false; } } -} \ No newline at end of file +} diff --git a/Web/event/login.php b/Web/event/login.php index e499078..0539346 100644 --- a/Web/event/login.php +++ b/Web/event/login.php @@ -24,4 +24,4 @@ $am->login($user, $pass); header('Location: /'); -exit; \ No newline at end of file +exit; diff --git a/Web/loader.php b/Web/loader.php index 562e493..27d8cbe 100644 --- a/Web/loader.php +++ b/Web/loader.php @@ -11,8 +11,8 @@ error_reporting(0); } -require_once __DIR__ . '/security/encryptionManager.php'; -require_once __DIR__ . '/security/inputManager.php'; +require_once __DIR__.'/security/encryptionManager.php'; +require_once __DIR__.'/security/inputManager.php'; require_once __DIR__.'/data/fileManager.php'; require_once __DIR__.'/data/databaseManager.php'; diff --git a/Web/security/inputManager.php b/Web/security/inputManager.php index 36a8900..b8a33b6 100644 --- a/Web/security/inputManager.php +++ b/Web/security/inputManager.php @@ -8,4 +8,4 @@ public function escapeString($string): string { return htmlspecialchars($string); } -} \ No newline at end of file +}