aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-04-07 12:32:10 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-07 12:32:10 +0200
commitd23d10bcde1a9b86c784d58b891f61e740e0124e (patch)
tree6f907e5d13a04832b3350286b1b847fbb3842ee7 /app/views
parent6c01e4e7d6c177ac345c826059e585bffdd1d517 (diff)
Phpstan Level6 for View.php (#5269)
* Remarque's from Alkarex * indentation * indentation * Apply suggestions from code review Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Remarque's from Alkarex * A few improvements * Remarque's from Alkarex * Remarque's from Alkarex * Remarque's from Alkarex * Remarque's from Alkarex * Fixes and improvments * Fix getTagsForEntry --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml3
-rwxr-xr-xapp/views/entry/read.phtml8
-rw-r--r--app/views/index/logs.phtml4
-rw-r--r--app/views/tag/getTagsForEntry.phtml2
4 files changed, 9 insertions, 8 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index de880579e..1c415390a 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -49,7 +49,8 @@
<div class="group-controls">
<ul class="slides">
<?php $slides = count($this->themes); $i = 1; $themeAvailable = false; ?>
- <?php foreach($this->themes as $theme) { ?>
+ <?php /** @var array{'id':string, 'deprecated':bool, 'author':string, 'name':string, 'description':string} $theme */
+ foreach($this->themes as $theme) { ?>
<?php if (FreshRSS_Context::$user_conf->theme === $theme['id']) {
$checked = 'checked="checked"';
$themeAvailable = true;
diff --git a/app/views/entry/read.phtml b/app/views/entry/read.phtml
index 0d87bf583..2d1760b87 100755
--- a/app/views/entry/read.phtml
+++ b/app/views/entry/read.phtml
@@ -1,8 +1,8 @@
-<?php /** @var FreshRSS_View $this */ ?>
<?php
+/** @var FreshRSS_View $this */
header('Content-Type: application/json; charset=UTF-8');
FreshRSS::loadStylesAndScripts();
-echo json_encode(array(
- 'tags' => $this->tags,
- ));
+echo json_encode([
+ 'tags' => $this->tagsForEntries,
+ ]);
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 896a19765..54b7e1c6b 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -14,7 +14,7 @@
?>
<?php if (!empty($items)) { ?>
- <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
+ <?php $this->logsPaginator->render('logs_pagination.phtml', 0); ?>
<div id="loglist-wrapper" class="table-wrapper">
<table id="loglist">
<thead>
@@ -41,7 +41,7 @@
</tbody>
</table>
</div>
- <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
+ <?php $this->logsPaginator->render('logs_pagination.phtml', 0); ?>
diff --git a/app/views/tag/getTagsForEntry.phtml b/app/views/tag/getTagsForEntry.phtml
index 9125ae84b..46a82ca68 100644
--- a/app/views/tag/getTagsForEntry.phtml
+++ b/app/views/tag/getTagsForEntry.phtml
@@ -1,3 +1,3 @@
<?php /** @var FreshRSS_View $this */ ?>
<?php
-echo json_encode($this->tags);
+echo json_encode($this->tagsForEntry);