aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
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'];
}