mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12124)
This commit is contained in:
@@ -4,8 +4,8 @@ use LibreNMS\Config;
|
||||
|
||||
function process_trap($device, $entry)
|
||||
{
|
||||
$oid = trim(strstr($entry[3], " "));
|
||||
$oid = str_replace("::", "", strstr($oid, "::"));
|
||||
$oid = trim(strstr($entry[3], ' '));
|
||||
$oid = str_replace('::', '', strstr($oid, '::'));
|
||||
|
||||
$file = Config::get('install_dir') . '/includes/snmptrap/' . $oid . '.inc.php';
|
||||
if (is_file($file)) {
|
||||
|
Reference in New Issue
Block a user