From f8f163d054110f7e0ff6650fca146b474335f4bd Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 22:36:27 +0200 Subject: Chore/processing of depreciations and updating code to php72 minimum (#5504) * processing of depreciations and updating of code to php7.2 minimum * Autoformat many strange array indenting And revert a few unwanted changes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Controllers/categoryController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/Controllers/categoryController.php') diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php index 60685c566..630399bf4 100644 --- a/app/Controllers/categoryController.php +++ b/app/Controllers/categoryController.php @@ -30,7 +30,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController { $catDAO = FreshRSS_Factory::createCategoryDao(); $tagDAO = FreshRSS_Factory::createTagDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'add'); + $url_redirect = ['c' => 'subscription', 'a' => 'add']; $limits = FreshRSS_Context::$system_conf->limits; $this->view->categories = $catDAO->listCategories(false) ?: []; @@ -88,7 +88,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController { */ public function updateAction(): void { $catDAO = FreshRSS_Factory::createCategoryDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'index'); + $url_redirect = ['c' => 'subscription', 'a' => 'index']; if (Minz_Request::isPost()) { invalidateHttpCache(); @@ -131,7 +131,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController { public function deleteAction(): void { $feedDAO = FreshRSS_Factory::createFeedDao(); $catDAO = FreshRSS_Factory::createCategoryDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'index'); + $url_redirect = ['c' => 'subscription', 'a' => 'index']; if (Minz_Request::isPost()) { invalidateHttpCache(); @@ -174,7 +174,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController { */ public function emptyAction(): void { $feedDAO = FreshRSS_Factory::createFeedDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'index'); + $url_redirect = ['c' => 'subscription', 'a' => 'index']; if (Minz_Request::isPost()) { invalidateHttpCache(); @@ -214,7 +214,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController { */ public function refreshOpmlAction(): void { $catDAO = FreshRSS_Factory::createCategoryDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'index'); + $url_redirect = ['c' => 'subscription', 'a' => 'index']; if (Minz_Request::isPost()) { invalidateHttpCache(); -- cgit v1.2.3