mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 02:18:39 +00:00
Apply fixes from StyleCI (#15698)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
58becd9ea2
commit
071ca9bc2a
@ -138,6 +138,7 @@ class SSOAuthorizer extends MysqlAuthorizer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// No match, proxy is untrusted
|
||||
return false;
|
||||
} catch (InvalidIpException $e) {
|
||||
@ -145,6 +146,7 @@ class SSOAuthorizer extends MysqlAuthorizer
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Not enabled, trust everything
|
||||
return true;
|
||||
}
|
||||
|
@ -173,6 +173,7 @@ class Isis implements Module
|
||||
|
||||
if (count($data) !== $adjacencies->where('isisISAdjState', 'up')->count()) {
|
||||
echo 'New Adjacencies, running discovery';
|
||||
|
||||
// don't enable, might be a bad heuristic
|
||||
return $this->fillNew($adjacencies, $this->discoverIsIsMib($os));
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ class RRDRecursiveFilterIterator extends \RecursiveFilterIterator
|
||||
// We want to search into directories
|
||||
return true;
|
||||
}
|
||||
|
||||
// Matches files with .rrd in the filename.
|
||||
// We are only searching rrd folder, but there could be other files and we don't want to cause a stink.
|
||||
return strpos($filename, '.rrd') !== false;
|
||||
|
@ -466,6 +466,7 @@ class Device extends BaseModel
|
||||
if (empty($ip)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// @ suppresses warning, inet_ntop() returns false if it fails
|
||||
return @inet_ntop($ip) ?: null;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ class PortGroup extends BaseModel
|
||||
if ($user->hasGlobalRead()) {
|
||||
return $query;
|
||||
}
|
||||
|
||||
// maybe filtered in future
|
||||
return $query;
|
||||
}
|
||||
|
@ -648,6 +648,7 @@ function ResolveGlues($tables, $target, $x = 0, $hist = [], $last = [])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//You should never get here.
|
||||
return false;
|
||||
}
|
||||
|
@ -816,6 +816,7 @@ function removeComments(&$output)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* transfer the new array back to the original array */
|
||||
return $new_array;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user