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:
@@ -17,7 +17,7 @@ if (isset($options['r']) && isset($options['h'])) {
|
||||
$where = "alerts.device_id = $device_id && alerts.rule_id = $rule_id";
|
||||
$alerts = $runAlerts->loadAlerts($where);
|
||||
if (empty($alerts)) {
|
||||
echo "No active alert found, please check that you have the correct ids";
|
||||
echo 'No active alert found, please check that you have the correct ids';
|
||||
exit(2);
|
||||
}
|
||||
$alert = $alerts[0];
|
||||
@@ -26,7 +26,7 @@ if (isset($options['r']) && isset($options['h'])) {
|
||||
$alert['note'] = 'Testing';
|
||||
$runAlerts->issueAlert($alert);
|
||||
} else {
|
||||
c_echo("
|
||||
c_echo('
|
||||
Info:
|
||||
Use this to send an actual alert via transports that is currently active.
|
||||
Usage:
|
||||
@@ -37,6 +37,6 @@ Usage:
|
||||
Example:
|
||||
./scripts/test-alert.php -r 4 -d -h localhost
|
||||
|
||||
");
|
||||
');
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user