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/Models/Context.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/Models/Context.php') diff --git a/app/Models/Context.php b/app/Models/Context.php index c10119d7d..2dc49e844 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -18,11 +18,11 @@ final class FreshRSS_Context { /** * @var array */ - public static $categories = array(); + public static $categories = []; /** * @var array */ - public static $tags = array(); + public static $tags = []; /** * @var string */ @@ -261,19 +261,19 @@ final class FreshRSS_Context { return $asArray ? ['s', true] : 's'; } elseif (self::$current_get['feed']) { if ($asArray) { - return array('f', self::$current_get['feed']); + return ['f', self::$current_get['feed']]; } else { return 'f_' . self::$current_get['feed']; } } elseif (self::$current_get['category']) { if ($asArray) { - return array('c', self::$current_get['category']); + return ['c', self::$current_get['category']]; } else { return 'c_' . self::$current_get['category']; } } elseif (self::$current_get['tag']) { if ($asArray) { - return array('t', self::$current_get['tag']); + return ['t', self::$current_get['tag']]; } else { return 't_' . self::$current_get['tag']; } -- cgit v1.2.3