librenms/librenms

View on GitHub

Showing 1,511 of 31,793 total issues

Avoid too many return statements within this method.
Open

                    return $port;
Severity: Major
Found in LibreNMS/Modules/Ospf.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return $query;
    Severity: Major
    Found in LibreNMS/Alerting/QueryBuilderFluentParser.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return (bool) preg_match('/^#?[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/', $value);
      Severity: Major
      Found in LibreNMS/Util/DynamicConfigItem.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return false;
        Severity: Major
        Found in LibreNMS/DB/Schema.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $cache[$attr]['value'];
          Severity: Major
          Found in LibreNMS/Authentication/LdapSessionCache.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return true;
            Severity: Major
            Found in LibreNMS/Authentication/SSOAuthorizer.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return array_merge($recurse, [$table]);
              Severity: Major
              Found in LibreNMS/DB/Schema.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return 'twamp';
                Severity: Major
                Found in LibreNMS/OS/Junos.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return 'IP-20S';
                  Severity: Major
                  Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return 'IP-20G';
                    Severity: Major
                    Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return 'IP-20GX';
                      Severity: Major
                      Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return 'IP-20N 2RU';
                        Severity: Major
                        Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return 'IP-20E (hardware release 2)';
                          Severity: Major
                          Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return str_replace('ping', '', $rtt_type);
                            Severity: Major
                            Found in LibreNMS/OS/Junos.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return 'IP-20A 2RU';
                              Severity: Major
                              Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return 'NtpQuery';
                                Severity: Major
                                Found in LibreNMS/OS/Junos.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return 'IP-20 Evolution 2RU';
                                  Severity: Major
                                  Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return 'IP-20E (hardware release 1)';
                                    Severity: Major
                                    Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return snmp_get($this->getDeviceArray(), 'genEquipInventoryCardName', '-Oqv', 'MWRM-UNIT-NAME');
                                      Severity: Major
                                      Found in LibreNMS/OS/Ceraos.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $tag;
                                        Severity: Major
                                        Found in LibreNMS/OS/Shared/Cisco.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language