diff --git a/LibreNMS/Enum/AlertLogState.php b/LibreNMS/Enum/AlertLogState.php
index b37d62b06d4fc9c3f6e55cdfb75ab826ed076583..e7623cbc32400a4167b0dedeb69dae0474a41925 100644
--- a/LibreNMS/Enum/AlertLogState.php
+++ b/LibreNMS/Enum/AlertLogState.php
@@ -14,7 +14,7 @@ enum AlertLogState: int
public function isActive(): bool
{
- return match($this) {
+ return match ($this) {
self::Active, self::Worse, self::Better, self::Changed => true,
default => false,
};
@@ -22,7 +22,7 @@ enum AlertLogState: int
public function asSeverity(): Severity
{
- return match($this) {
+ return match ($this) {
self::Clear, self::Recovered => Severity::Ok,
self::Active => Severity::Error,
self::Acknowledged => Severity::Info,
diff --git a/app/Http/Controllers/Table/AlertLogController.php b/app/Http/Controllers/Table/AlertLogController.php
index d68678896497dc32bc9d57b4e9e6222d70ea0a77..298e920b8b000c8ac5b12ae8edc8ae9486165d06 100644
--- a/app/Http/Controllers/Table/AlertLogController.php
+++ b/app/Http/Controllers/Table/AlertLogController.php
@@ -15,7 +15,8 @@ class AlertLogController extends TableController
public function __construct(
private readonly AlertLogDetailFormatter $formatter
- ) {}
+ ) {
+ }
protected function rules()
{
@@ -43,7 +44,7 @@ class AlertLogController extends TableController
return [
'device' => ['hostname', 'sysname'],
'rule' => ['name'],
-// 'time_logged', // how would this be useful? removed
+ // 'time_logged', // how would this be useful? removed
];
}
diff --git a/app/Http/Formatters/AlertLogDetailFormatter.php b/app/Http/Formatters/AlertLogDetailFormatter.php
index d44083b052c242abb681ef0a5c6e6643f21d9342..6979c2c8ea491bfd322fa33c89f82aa7dad551d9 100644
--- a/app/Http/Formatters/AlertLogDetailFormatter.php
+++ b/app/Http/Formatters/AlertLogDetailFormatter.php
@@ -76,7 +76,6 @@ class AlertLogDetailFormatter
}
return $fault_detail . '
';
-
}
private function fallbackFormatting(array $detail): string
@@ -138,7 +137,6 @@ class AlertLogDetailFormatter
return $output;
}
-
private function formatAccessPoint(array $detail): ?string
{
if (empty($detail['accesspoint_id'])) {
@@ -173,7 +171,6 @@ class AlertLogDetailFormatter
? "State: $value (numerical $sensor->sensor_current)"
: "Value: $value ($sensor->sensor_class)";
-
$thresholds = [];
if ($sensor->sensor_limit_low) {
$thresholds[] = 'low: ' . $sensor->sensor_limit_low;
diff --git a/includes/html/common/alert-log.inc.php b/includes/html/common/alert-log.inc.php
index ccf1f0edae38a8ad24d14889e149a1824de66574..04d7b00fbb892ca29cda927a8882ebdef4685a66 100644
--- a/includes/html/common/alert-log.inc.php
+++ b/includes/html/common/alert-log.inc.php
@@ -57,7 +57,7 @@ $device_selected = json_encode($device->exists ? ['id' => $device->device_id, 't
$common_output[] = '
| State | @@ -96,9 +96,9 @@ $common_output[] = '
|---|