diff --git a/LibreNMS/Alert/AlertUtil.php b/LibreNMS/Alert/AlertUtil.php index 97e57c72de22995ee9abb3fefe552c591b582ace..6652e608f34737a6f4f7d6d333801f3c4d7b881f 100644 --- a/LibreNMS/Alert/AlertUtil.php +++ b/LibreNMS/Alert/AlertUtil.php @@ -223,7 +223,7 @@ class AlertUtil }); }) // Inverted mapping (invert_map = 1) - ->orWhere(function ($q) use ($device_id, $location_id,) { + ->orWhere(function ($q) use ($device_id, $location_id) { $q->where('invert_map', 1) ->where(function ($q) use ($device_id, $location_id) { $q->whereDoesntHave('devices', fn ($q) => $q->where('alert_device_map.device_id', $device_id)) diff --git a/LibreNMS/Util/Snmpsim.php b/LibreNMS/Util/Snmpsim.php index 39fe668e3e94459245b38b7067bd67e0e7427592..dbedaf53673f2b2ee1f4e947c29f15479b98ff12 100644 --- a/LibreNMS/Util/Snmpsim.php +++ b/LibreNMS/Util/Snmpsim.php @@ -38,7 +38,7 @@ class Snmpsim extends Process public readonly int $port = 1161, public readonly ?string $log_method = null) { - $this->snmprec_dir = ('tests/snmpsim'); + $this->snmprec_dir = 'tests/snmpsim'; $cmd = [ $this->getVenvPath('bin/snmpsim-command-responder-lite'),