Apply fixes from StyleCI (#12124)

This commit is contained in:
Jellyfrog
2020-09-21 15:59:34 +02:00
committed by GitHub
parent 0d56bbd946
commit 29f45ca352
816 changed files with 5038 additions and 5038 deletions

View File

@@ -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)) {