style(legacy): fix code format with php-cs-fixer (#1674)

This commit is contained in:
Jonas L 2022-03-14 11:15:04 +01:00 committed by GitHub
parent e1dc69af9e
commit 69d8eae845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 1163 additions and 1163 deletions

View file

@ -14,7 +14,7 @@ class Application_Model_Systemstatus
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_USERPWD, "$monit_user:$monit_password");
//wait a max of 3 seconds before aborting connection attempt
// wait a max of 3 seconds before aborting connection attempt
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
$result = curl_exec($ch);
@ -75,12 +75,12 @@ class Application_Model_Systemstatus
if ($status == '2') {
$data = $starting;
} elseif ($status == 1) {
//is monitored, but is it running?
// is monitored, but is it running?
$pid = $item->getElementsByTagName('pid');
if ($pid->length == 0) {
$data = $notRunning;
}
//running!
// running!
} elseif ($status == 0) {
$data = $notMonitored;
}