diff options
| author | 2023-11-16 22:43:00 +0100 | |
|---|---|---|
| committer | 2023-11-16 22:43:00 +0100 | |
| commit | 30c7a61a9b410f023c56ef19b9389a61647d8768 (patch) | |
| tree | bb58408980ce5b86f1d2b4a9be29d55b2d46dbb1 /app/views/user | |
| parent | ee99e7e2cc228500efc1b539954c0ca6cd4c146d (diff) | |
Use strict_types (#5830)
* Little's optimisations and booleans in conditions
* Apply strict type
* Apply strict type
* Apply strict type
* Fix multiple bugs with PHP 8.2 and 8.3
* Many declares missing, more errors fixed
* Apply strict type
* Another approach
* Stronger typing for Minz_Session
* Fix case of SQLite
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/user')
| -rw-r--r-- | app/views/user/details.phtml | 9 | ||||
| -rw-r--r-- | app/views/user/manage.phtml | 2 | ||||
| -rw-r--r-- | app/views/user/profile.phtml | 3 | ||||
| -rw-r--r-- | app/views/user/validateEmail.phtml | 5 |
4 files changed, 11 insertions, 8 deletions
diff --git a/app/views/user/details.phtml b/app/views/user/details.phtml index a2a560a65..1ea8f62d8 100644 --- a/app/views/user/details.phtml +++ b/app/views/user/details.phtml @@ -1,14 +1,13 @@ <?php + declare(strict_types=1); /** @var FreshRSS_View $this */ if (!Minz_Request::paramBoolean('ajax')) { $this->partial('aside_configure'); } + $isDefault = $this->details['is_default']; + $isAdmin = $this->details['is_admin']; + $enabled = $this->details['enabled']; ?> - -<?php $isDefault = $this->details['is_default']; ?> -<?php $isAdmin = $this->details['is_admin']; ?> -<?php $enabled = $this->details['enabled']; ?> - <div class="post"> <h2><?= $this->username ?><?php if ($isAdmin) echo ' ― ', _t('admin.user.admin'); ?></h2> <form method="post" action="<?= _url('user', 'manage', 'username', $this->username); ?>"> diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index 827ba39da..dcff153d6 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -1,8 +1,8 @@ <?php + declare(strict_types=1); /** @var FreshRSS_View $this */ $this->partial('aside_configure'); ?> - <main class="post"> <div class="link-back-wrapper"> <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml index b5fbb04b5..0a41d4dc4 100644 --- a/app/views/user/profile.phtml +++ b/app/views/user/profile.phtml @@ -1,5 +1,6 @@ -<?php /** @var FreshRSS_View $this */ ?> <?php + declare(strict_types=1); + /** @var FreshRSS_View $this */ if (!$this->disable_aside) { $this->partial('aside_configure'); } diff --git a/app/views/user/validateEmail.phtml b/app/views/user/validateEmail.phtml index bd36510dd..8f822fe6a 100644 --- a/app/views/user/validateEmail.phtml +++ b/app/views/user/validateEmail.phtml @@ -1,4 +1,7 @@ -<?php /** @var FreshRSS_View $this */ ?> +<?php + declare(strict_types=1); + /** @var FreshRSS_View $this */ +?> <main class="post"> <p> <?= _t('user.email.validation.need_to', FreshRSS_Context::$system_conf->title) ?> |
