From d23d10bcde1a9b86c784d58b891f61e740e0124e Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Apr 2023 12:32:10 +0200 Subject: Phpstan Level6 for View.php (#5269) * Remarque's from Alkarex * indentation * indentation * Apply suggestions from code review Co-authored-by: Alexandre Alapetite * 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 Co-authored-by: Alexandre Alapetite --- app/Controllers/entryController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controllers/entryController.php') diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index 9faf20331..7a30f94de 100644 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -59,8 +59,8 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { FreshRSS_Context::$state = 0; } - $params = array(); - $this->view->tags = array(); + $params = []; + $this->view->tagsForEntries = []; $entryDAO = FreshRSS_Factory::createEntryDao(); if ($id == false) { @@ -112,7 +112,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { foreach ($tagsForEntries as $line) { $tags['t_' . $line['id_tag']][] = $line['id_entry']; } - $this->view->tags = $tags; + $this->view->tagsForEntries = $tags; } if (!$this->ajax) { -- cgit v1.2.3