librenms/librenms

View on GitHub
LibreNMS/OS/Ptp250.php

Summary

Maintainability
A
3 hrs
Test Coverage

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

    public function discoverWirelessRate()
    {
        $receive = '.1.3.6.1.4.1.17713.250.11.1.0'; //"CAMBIUM-PTP250-MIB::receiveDataRate.0"
        $transmit = '.1.3.6.1.4.1.17713.250.11.2.0'; //"CAMBIUM-PTP250-MIB::transmitDataRate.0"
        $aggregate = '.1.3.6.1.4.1.17713.250.11.3.0'; //"CAMBIUM-PTP250-MIB::aggregateDataRate.0"
Severity: Major
Found in LibreNMS/OS/Ptp250.php - About 2 hrs 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.250.5.3.0'; //"CAMBIUM-PTP250-MIB::transmitPower.0"
            $receive = '.1.3.6.1.4.1.17713.250.5.1.0'; //"CAMBIUM-PTP250-MIB::receivePower.0";
    
    
    Severity: Minor
    Found in LibreNMS/OS/Ptp250.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status