@@ -470,7 +470,7 @@ public function pollNac()
470470 $ mac_address = Mac::parse ($ portAuthSessionEntryParameters ['cafSessionClientMacAddress ' ])->hex ();
471471
472472 $ nac ->put ($ mac_address , new PortsNac ([
473- 'port_id ' => (int ) PortCache::getIdFromIfIndex (( int ) $ ifIndex , $ this ->getDevice ()),
473+ 'port_id ' => (int ) PortCache::getIdFromIfIndex ($ ifIndex , $ this ->getDevice ()),
474474 'mac_address ' => $ mac_address ,
475475 'auth_id ' => $ auth_id ,
476476 'domain ' => $ portAuthSessionEntryParameters ['cafSessionDomain ' ] ?? '' ,
@@ -696,7 +696,7 @@ public function discoverTransceivers(): Collection
696696 $ ifIndex = $ ent ['ifIndex ' ] ?? null ;
697697
698698 return new Transceiver ([
699- 'port_id ' => (int ) PortCache::getIdFromIfIndex (( int ) $ ifIndex , $ this ->getDevice ()),
699+ 'port_id ' => (int ) PortCache::getIdFromIfIndex ($ ifIndex , $ this ->getDevice ()),
700700 'index ' => $ index ,
701701 'type ' => $ ent ['entPhysicalDescr ' ] ?? null ,
702702 'vendor ' => $ ent ['entPhysicalMfgName ' ] ?? null ,
@@ -784,7 +784,7 @@ public function discoverQos(): Collection
784784
785785 $ qos ->push (new Qos ([
786786 'device_id ' => $ this ->getDeviceId (),
787- 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex (( int ) $ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
787+ 'port_id ' => $ parent ? null : PortCache::getIdFromIfIndex ($ servicePolicies [$ policyId ]['cbQosIfIndex ' ], $ this ->getDevice ()),
788788 'type ' => $ dbtype ,
789789 'title ' => $ title ,
790790 'tooltip ' => $ tooltip ,
0 commit comments