Apply fixes from StyleCI (#12124)

This commit is contained in:
Jellyfrog
2020-09-21 15:59:34 +02:00
committed by GitHub
parent 0d56bbd946
commit 29f45ca352
816 changed files with 5038 additions and 5038 deletions

View File

@@ -55,13 +55,13 @@ class Pushover extends Transport
$data['token'] = $api['appkey'];
$data['user'] = $api['userkey'];
switch ($obj['severity']) {
case "critical":
case 'critical':
$data['priority'] = 1;
if (! empty($api['options']['sound_critical'])) {
$data['sound'] = $api['options']['sound_critical'];
}
break;
case "warning":
case 'warning':
$data['priority'] = 1;
if (! empty($api['options']['sound_warning'])) {
$data['sound'] = $api['options']['sound_warning'];
@@ -90,7 +90,7 @@ class Pushover extends Transport
$ret = curl_exec($curl);
$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($code != 200) {
var_dump("Pushover returned error"); //FIXME: proper debugging
var_dump('Pushover returned error'); //FIXME: proper debugging
return 'HTTP Status code ' . $code;
}