aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-11-16 22:43:00 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-16 22:43:00 +0100
commit30c7a61a9b410f023c56ef19b9389a61647d8768 (patch)
treebb58408980ce5b86f1d2b4a9be29d55b2d46dbb1 /app/views/index
parentee99e7e2cc228500efc1b539954c0ca6cd4c146d (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/index')
-rw-r--r--app/views/index/about.phtml2
-rw-r--r--app/views/index/global.phtml2
-rw-r--r--app/views/index/logs.phtml7
-rw-r--r--app/views/index/normal.phtml1
-rw-r--r--app/views/index/opml.phtml1
-rw-r--r--app/views/index/reader.phtml1
-rw-r--r--app/views/index/rss.phtml5
-rw-r--r--app/views/index/tos.phtml2
8 files changed, 15 insertions, 6 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml
index 1966c1f6b..5ee1729cd 100644
--- a/app/views/index/about.phtml
+++ b/app/views/index/about.phtml
@@ -1,10 +1,10 @@
<?php
+ declare(strict_types=1);
/** @var FreshRSS_View $this */
if (FreshRSS_Auth::hasAccess()) {
$this->partial('aside_configure');
}
?>
-
<main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
<?php if (FreshRSS_Auth::hasAccess()) {?>
<div class="link-back-wrapper">
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml
index 6e3b2378b..0ddc22e11 100644
--- a/app/views/index/global.phtml
+++ b/app/views/index/global.phtml
@@ -1,4 +1,5 @@
<?php
+ declare(strict_types=1);
/** @var FreshRSS_View $this */
$this->partial('nav_menu');
@@ -12,7 +13,6 @@
$state_unread = true;
}
?>
-
<main id="stream" class="global<?= $class ?>">
<h1 class="title_hidden"><?= _t('conf.reading.view.global') ?></h1>
<?php
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index cba6f5243..7913405ca 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -1,5 +1,8 @@
-<?php /** @var FreshRSS_View $this */ ?>
-<?php $this->partial('aside_configure'); ?>
+<?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/index/normal.phtml b/app/views/index/normal.phtml
index aee2ea2a2..feda1466f 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_View $this */
if (!Minz_Request::paramBoolean('ajax')) {
$this->partial('aside_feed');
diff --git a/app/views/index/opml.phtml b/app/views/index/opml.phtml
index 69dace924..f55461165 100644
--- a/app/views/index/opml.phtml
+++ b/app/views/index/opml.phtml
@@ -1,3 +1,4 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_View $this */
$this->renderHelper('export/opml');
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index 014b1ab42..dc90a144a 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_View $this */
if (!Minz_Request::paramBoolean('ajax')) {
$this->partial('aside_feed');
diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml
index f9c9d9297..a6d0d2a10 100644
--- a/app/views/index/rss.phtml
+++ b/app/views/index/rss.phtml
@@ -1,4 +1,7 @@
-<?php /** @var FreshRSS_View $this */ ?>
+<?php
+ declare(strict_types=1);
+ /** @var FreshRSS_View $this */
+?>
<?= '<?xml version="1.0" encoding="UTF-8" ?>'; ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"
<?= $this->rss_base == '' ? '' : ' xml:base="' . $this->rss_base . '"' ?>
diff --git a/app/views/index/tos.phtml b/app/views/index/tos.phtml
index 8a9c2f583..6a2aa7ce8 100644
--- a/app/views/index/tos.phtml
+++ b/app/views/index/tos.phtml
@@ -1,10 +1,10 @@
<?php
+ declare(strict_types=1);
/** @var FreshRSS_View $this */
if (FreshRSS_Auth::hasAccess()) {
$this->partial('aside_configure');
}
?>
-
<main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
<?php if (FreshRSS_Auth::hasAccess()) {?>
<div class="link-back-wrapper">