mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Replace array() with shorthand.
This commit is contained in:
@@ -22,14 +22,14 @@ if (isset($argv[1])) {
|
||||
|
||||
function relativeTime($_time)
|
||||
{
|
||||
$d = array();
|
||||
$d = [];
|
||||
$d[0] = array(1, "sec");
|
||||
$d[1] = array(60, "min");
|
||||
$d[2] = array(3600, "hr");
|
||||
$d[3] = array(86400, "day");
|
||||
$d[4] = array(31104000, "yr");
|
||||
|
||||
$w = array();
|
||||
$w = [];
|
||||
|
||||
$return = "";
|
||||
$now = TIME();
|
||||
|
||||
Reference in New Issue
Block a user