librenms/librenms

View on GitHub
LibreNMS/Snmptrap/Handlers/JnxDomAlarmId.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getAlarms has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getAlarms(string $currentAlarm): string
    {
        $alarmBin = preg_split(
            '//',
            sprintf('%024s', decbin(hexdec(str_replace(' ', '', $currentAlarm)))),
Severity: Minor
Found in LibreNMS/Snmptrap/Handlers/JnxDomAlarmId.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status