From f8f163d054110f7e0ff6650fca146b474335f4bd Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 22:36:27 +0200 Subject: Chore/processing of depreciations and updating code to php72 minimum (#5504) * processing of depreciations and updating of code to php7.2 minimum * Autoformat many strange array indenting And revert a few unwanted changes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/FormAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/FormAuth.php') diff --git a/app/Models/FormAuth.php b/app/Models/FormAuth.php index 52c75d73d..c19856c37 100644 --- a/app/Models/FormAuth.php +++ b/app/Models/FormAuth.php @@ -17,7 +17,7 @@ class FreshRSS_FormAuth { public static function getCredentialsFromCookie(): array { $token = Minz_Session::getLongTermCookie('FreshRSS_login'); if (!ctype_alnum($token)) { - return array(); + return []; } $token_file = DATA_PATH . '/tokens/' . $token . '.txt'; @@ -27,7 +27,7 @@ class FreshRSS_FormAuth { if ($mtime + $cookie_duration < time()) { // Token has expired (> cookie_duration) or does not exist. @unlink($token_file); - return array(); + return []; } $credentials = @file_get_contents($token_file); -- cgit v1.2.3