diff options
| author | 2023-10-30 20:40:13 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:40:13 +0100 | |
| commit | 4a02352ccc1b313ce967415c6ac10a32aba1893a (patch) | |
| tree | 36bec23832a05acb930a5386d7eefb3535323a38 /app/Models | |
| parent | d50bb386e7bc9ee9595338119edc4951d10c526a (diff) | |
applies several small optimizations (#5511)
declare(strict_types=1);
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/ActionController.php | 2 | ||||
| -rw-r--r-- | app/Models/Log.php | 2 | ||||
| -rw-r--r-- | app/Models/SystemConfiguration.php | 3 | ||||
| -rw-r--r-- | app/Models/TagDAOPGSQL.php | 2 | ||||
| -rw-r--r-- | app/Models/UserConfiguration.php | 3 | ||||
| -rw-r--r-- | app/Models/ViewJavascript.php | 2 | ||||
| -rw-r--r-- | app/Models/ViewStats.php | 2 |
7 files changed, 16 insertions, 0 deletions
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 @@ <?php +declare(strict_types=1); + class FreshRSS_ActionController extends Minz_ActionController { /** diff --git a/app/Models/Log.php b/app/Models/Log.php index 72208513d..96714d1c7 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + class FreshRSS_Log extends Minz_Model { /** @var string */ private $date; diff --git a/app/Models/SystemConfiguration.php b/app/Models/SystemConfiguration.php index 6cb3569f1..bf5bed0d7 100644 --- a/app/Models/SystemConfiguration.php +++ b/app/Models/SystemConfiguration.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + /** * @property bool $allow_anonymous * @property bool $allow_anonymous_refresh @@ -27,6 +29,7 @@ */ final class FreshRSS_SystemConfiguration extends Minz_Configuration { + /** @throws Minz_ConfigurationNamespaceException */ public static function init(string $config_filename, ?string $default_filename = null): FreshRSS_SystemConfiguration { parent::register('system', $config_filename, $default_filename); return parent::get('system'); diff --git a/app/Models/TagDAOPGSQL.php b/app/Models/TagDAOPGSQL.php index cfc14a77f..1b8bb7784 100644 --- a/app/Models/TagDAOPGSQL.php +++ b/app/Models/TagDAOPGSQL.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + class FreshRSS_TagDAOPGSQL extends FreshRSS_TagDAO { public function sqlIgnore(): string { diff --git a/app/Models/UserConfiguration.php b/app/Models/UserConfiguration.php index 30095af34..47d0fac49 100644 --- a/app/Models/UserConfiguration.php +++ b/app/Models/UserConfiguration.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + /** * @property string $apiPasswordHash * @property array<string,mixed> $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 @@ <?php +declare(strict_types=1); + final class FreshRSS_ViewJavascript extends FreshRSS_View { /** @var array<FreshRSS_Category> */ 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 @@ <?php +declare(strict_types=1); + final class FreshRSS_ViewStats extends FreshRSS_View { /** @var FreshRSS_Category|null */ |
