From 4a02352ccc1b313ce967415c6ac10a32aba1893a Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:40:13 +0100 Subject: applies several small optimizations (#5511) declare(strict_types=1); Co-authored-by: Luc --- app/Models/ActionController.php | 2 ++ app/Models/Log.php | 2 ++ app/Models/SystemConfiguration.php | 3 +++ app/Models/TagDAOPGSQL.php | 2 ++ app/Models/UserConfiguration.php | 3 +++ app/Models/ViewJavascript.php | 2 ++ app/Models/ViewStats.php | 2 ++ 7 files changed, 16 insertions(+) (limited to 'app/Models') diff --git a/app/Models/ActionController.php b/app/Models/ActionController.php index 69548feb3..1a46cff36 100644 --- a/app/Models/ActionController.php +++ b/app/Models/ActionController.php @@ -1,5 +1,7 @@ $archiving @@ -71,6 +73,7 @@ */ final class FreshRSS_UserConfiguration extends Minz_Configuration { + /** @throws Minz_ConfigurationNamespaceException */ public static function init(string $config_filename, ?string $default_filename = null): FreshRSS_UserConfiguration { parent::register('user', $config_filename, $default_filename); return parent::get('user'); diff --git a/app/Models/ViewJavascript.php b/app/Models/ViewJavascript.php index f14810572..62d0339eb 100644 --- a/app/Models/ViewJavascript.php +++ b/app/Models/ViewJavascript.php @@ -1,5 +1,7 @@ */ diff --git a/app/Models/ViewStats.php b/app/Models/ViewStats.php index 03e0bc00d..9025a86db 100644 --- a/app/Models/ViewStats.php +++ b/app/Models/ViewStats.php @@ -1,5 +1,7 @@