mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
This commit is contained in:
parent
77dfbaa0bf
commit
e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue