mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12124)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user