aboutsummaryrefslogtreecommitdiff
path: root/app/views/configure
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-12-31 17:00:51 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-31 17:00:51 +0100
commit77e9877316fcfacb26799afdf32d94c8411da80e (patch)
tree7fd9c85bf4854054be6536c14d120bc8b790debe /app/views/configure
parent09c84fb3bc44bf8e45619c27acc15b967aea14ce (diff)
Add PHPStan (#4021)
* Add PHPStan #fix https://github.com/FreshRSS/FreshRSS/issues/4016 https://phpstan.org/ ```sh composer run-script phpstan ``` * More fixes * Fix global variables * Add .phtml * Fix merge https://github.com/FreshRSS/FreshRSS/pull/4090 * Fix more warnings * Fix view errors and enable in CI * ReturnTypeWillChange * Dynamic view type * Fix Minz static/self bug
Diffstat (limited to 'app/views/configure')
-rw-r--r--app/views/configure/archiving.phtml7
-rw-r--r--app/views/configure/display.phtml7
-rw-r--r--app/views/configure/integration.phtml7
-rw-r--r--app/views/configure/queries.phtml5
-rw-r--r--app/views/configure/query.phtml1
-rw-r--r--app/views/configure/reading.phtml9
-rw-r--r--app/views/configure/shortcut.phtml7
-rw-r--r--app/views/configure/system.phtml5
8 files changed, 35 insertions, 13 deletions
diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml
index fd56c8dde..47281e2f1 100644
--- a/app/views/configure/archiving.phtml
+++ b/app/views/configure/archiving.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">
@@ -7,7 +10,7 @@
<h1><?= _t('conf.archiving') ?></h1>
<p class="help"><?= _i('help') ?> <?= _t('conf.archiving.help') ?></p>
-
+
<form method="post" action="<?= _url('configure', 'archiving') ?>">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index dfb377893..e3e18f5a0 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">
@@ -6,7 +9,7 @@
</div>
<h1><?= _t('conf.display') ?></h1>
-
+
<form method="post" action="<?= _url('configure', 'display') ?>">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
diff --git a/app/views/configure/integration.phtml b/app/views/configure/integration.phtml
index 9bd7257ee..c8d299f44 100644
--- a/app/views/configure/integration.phtml
+++ b/app/views/configure/integration.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">
@@ -24,7 +27,7 @@
<a target="_blank" rel="noreferrer" class="btn" title="<?= _t('conf.sharing.more_information') ?>" href="##help##"><?= _i('help') ?></a>
</div></div>' class="draggableList">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
-
+
<?php
foreach (FreshRSS_Context::$user_conf->sharing as $key => $share_options) {
$share = FreshRSS_Share::get($share_options['type']);
diff --git a/app/views/configure/queries.phtml b/app/views/configure/queries.phtml
index 6de606639..3f15f299b 100644
--- a/app/views/configure/queries.phtml
+++ b/app/views/configure/queries.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">
diff --git a/app/views/configure/query.phtml b/app/views/configure/query.phtml
index 6f38d9efb..316583bac 100644
--- a/app/views/configure/query.phtml
+++ b/app/views/configure/query.phtml
@@ -1,3 +1,4 @@
+<?php /** @var FreshRSS_View $this */ ?>
<?php
if ($this->query) {
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index da4e104a4..c021132aa 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -1,15 +1,18 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @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>
</div>
-
+
<h1><?= _t('conf.reading') ?></h1>
<form method="post" action="<?= _url('configure', 'reading') ?>">
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
-
+
<div class="form-group">
<label class="group-name" for="posts_per_page"><?= _t('conf.reading.articles_per_page') ?></label>
<div class="group-controls">
diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml
index ee671740e..ca4a42c86 100644
--- a/app/views/configure/shortcut.phtml
+++ b/app/views/configure/shortcut.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">
@@ -25,7 +28,7 @@
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
<noscript><p class="alert alert-error"><?= _t('conf.shortcut.javascript') ?></p></noscript>
-
+
<fieldset>
<legend><?= _t('conf.shortcut.views') ?></legend>
diff --git a/app/views/configure/system.phtml b/app/views/configure/system.phtml
index fa9e11ce2..7f355d156 100644
--- a/app/views/configure/system.phtml
+++ b/app/views/configure/system.phtml
@@ -1,4 +1,7 @@
-<?php $this->partial('aside_configure'); ?>
+<?php
+ /** @var FreshRSS_View $this */
+ $this->partial('aside_configure');
+?>
<main class="post">
<div class="link-back-wrapper">