aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-07-07 22:36:27 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-07 22:36:27 +0200
commitf8f163d054110f7e0ff6650fca146b474335f4bd (patch)
treedbd831e600bc76ca2830cd417bd52b712ff97309 /app/Models/Context.php
parent7f9594b8c7d7799f2e5f89328bd5981410db8cf0 (diff)
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 <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php10
1 files changed, 5 insertions, 5 deletions
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<int,FreshRSS_Category>
*/
- public static $categories = array();
+ public static $categories = [];
/**
* @var array<int,FreshRSS_Tag>
*/
- 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'];
}