@@ -469,7 +469,7 @@ public function pollNac()
469469 $ mac_address = strtolower (implode (array_map ('zeropad ' , explode (': ' , $ portAuthSessionEntryParameters ['cafSessionClientMacAddress ' ] ?? null ))));
470470
471471 $ nac ->put ($ mac_address , new PortsNac ([
472- 'port_id ' => (int ) PortCache::getIdFromIfIndex (( int ) $ ifIndex , $ this ->getDevice ()),
472+ 'port_id ' => (int ) PortCache::getIdFromIfIndex ($ ifIndex , $ this ->getDevice ()),
473473 'mac_address ' => $ mac_address ,
474474 'auth_id ' => $ auth_id ,
475475 'domain ' => $ portAuthSessionEntryParameters ['cafSessionDomain ' ] ?? '' ,
@@ -695,7 +695,7 @@ public function discoverTransceivers(): Collection
695695 $ ifIndex = $ ent ['ifIndex ' ] ?? null ;
696696
697697 return new Transceiver ([
698- 'port_id ' => (int ) PortCache::getIdFromIfIndex (( int ) $ ifIndex , $ this ->getDevice ()),
698+ 'port_id ' => (int ) PortCache::getIdFromIfIndex ($ ifIndex , $ this ->getDevice ()),
699699 'index ' => $ index ,
700700 'type ' => $ ent ['entPhysicalDescr ' ] ?? null ,
701701 'vendor ' => $ ent ['entPhysicalMfgName ' ] ?? null ,
@@ -783,7 +783,7 @@ public function discoverQos(): Collection
783783
784784 $ qos ->push (new Qos ([
785785 'device_id ' => $ this ->getDeviceId (),
786- 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex (( int ) $ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
786+ 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex ($ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
787787 'type ' => $ dbtype ,
788788 'title ' => $ title ,
789789 'tooltip ' => $ tooltip ,
0 commit comments