Use short form array syntax everywhere

- Add short form array syntax to po2php.php generation
This commit is contained in:
Hypolite Petovan 2018-01-15 08:05:12 -05:00
parent 77dfbaa0bf
commit e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions

View file

@ -25,15 +25,15 @@ class DBM
public static function processlist()
{
$r = q("SHOW PROCESSLIST");
$s = array();
$s = [];
$processes = 0;
$states = array();
$states = [];
foreach ($r as $process) {
$state = trim($process["State"]);
// Filter out all non blocking processes
if (!in_array($state, array("", "init", "statistics", "updating"))) {
if (!in_array($state, ["", "init", "statistics", "updating"])) {
++$states[$state];
++$processes;
}
@ -46,7 +46,7 @@ class DBM
}
$statelist .= $state.": ".$usage;
}
return(array("list" => $statelist, "amount" => $processes));
return(["list" => $statelist, "amount" => $processes]);
}
/**

File diff suppressed because it is too large Load diff