From: Roland Häder Date: Fri, 24 Jun 2022 03:27:33 +0000 (+0200) Subject: Changed double-quotes to single X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f689faca99cb9890b2b3fbe5817a4f1b7e58a5cd;p=friendica.git Changed double-quotes to single --- diff --git a/src/Database/Database.php b/src/Database/Database.php index 2231ca0ccb..2c59607e9d 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1719,29 +1719,29 @@ class Database */ public function processlist(): array { - $ret = $this->p("SHOW PROCESSLIST"); + $ret = $this->p('SHOW PROCESSLIST'); $data = $this->toArray($ret); $processes = 0; $states = []; foreach ($data as $process) { - $state = trim($process["State"]); + $state = trim($process['State']); // Filter out all non blocking processes - if (!in_array($state, ["", "init", "statistics", "updating"])) { + if (!in_array($state, ['', 'init', 'statistics', 'updating'])) { ++$states[$state]; ++$processes; } } - $statelist = ""; + $statelist = ''; foreach ($states as $state => $usage) { - if ($statelist != "") { - $statelist .= ", "; + if ($statelist != '') { + $statelist .= ', '; } - $statelist .= $state . ": " . $usage; + $statelist .= $state . ': ' . $usage; } - return (["list" => $statelist, "amount" => $processes]); + return (['list' => $statelist, 'amount' => $processes]); } /**