librenms/librenms

View on GitHub
LibreNMS/OS/Ptp800.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function discoverWirelessRate()
    {
        $receive = '.1.3.6.1.4.1.17713.8.20.1.0'; //"CAMBIUM-PTP800-MIB::receiveDataRate.0"
        $transmit = '.1.3.6.1.4.1.17713.8.20.2.0'; //"CAMBIUM-PTP800-MIB::transmitDataRate.0"
        $aggregate = '.1.3.6.1.4.1.17713.8.20.3.0'; //"CAMBIUM-PTP800-MIB::aggregateDataRate.0"
Severity: Minor
Found in LibreNMS/OS/Ptp800.php - About 1 hr to fix

    Method discoverWirelessPower has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function discoverWirelessPower()
        {
            $transmit = '.1.3.6.1.4.1.17713.8.12.3.0'; //"CAMBIUM-PTP800-MIB::transmitPower.0"
            $receive = '.1.3.6.1.4.1.17713.8.12.1.0'; //"CAMBIUM-PTP800-MIB::receivePower.0";
    
    
    Severity: Minor
    Found in LibreNMS/OS/Ptp800.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status