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

@@ -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);
}