From b2c19aea1e8c9ffd7d7c18236de013f71df39993 Mon Sep 17 00:00:00 2001 From: Peca Nesovanovic Date: Wed, 28 Feb 2024 22:13:11 +0100 Subject: [PATCH] type hint --- LibreNMS/Modules/Ipv6Addresses.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/LibreNMS/Modules/Ipv6Addresses.php b/LibreNMS/Modules/Ipv6Addresses.php index 1ff6e1026723..ac8ff42c7bca 100644 --- a/LibreNMS/Modules/Ipv6Addresses.php +++ b/LibreNMS/Modules/Ipv6Addresses.php @@ -128,7 +128,7 @@ private function discoverIpv6(OS $os): void self::cleanupIpv6($device, $valid); } - private function discoverIpv6_StandardOS(array $device) + private function discoverIpv6_StandardOS(array $device): array { $valid = []; @@ -169,7 +169,7 @@ private function discoverIpv6_StandardOS(array $device) return $valid; } - private function discoverIpv6_eltex_mes24xx(array $device) + private function discoverIpv6_eltex_mes24xx(array $device): array { $valid = []; @@ -202,7 +202,7 @@ private function discoverIpv6_eltex_mes24xx(array $device) return $valid; } - private function discoverIpv6_eltex_mes23xx(array $device) + private function discoverIpv6_eltex_mes23xx(array $device): array { $valid = []; @@ -230,7 +230,7 @@ private function discoverIpv6_eltex_mes23xx(array $device) return $valid; } - private function discoverIpv6_eltex_mes21xx(array $device) + private function discoverIpv6_eltex_mes21xx(array $device): array { $valid = []; @@ -258,7 +258,7 @@ private function discoverIpv6_eltex_mes21xx(array $device) return $valid; } - private function discoverIpv6_jetstream(array $device) + private function discoverIpv6_jetstream(array $device): array { $valid = []; @@ -285,9 +285,9 @@ private function discoverIpv6_jetstream(array $device) } } } - - return $valid; } + + return $valid; } private function processIpv6(array $device, int $ifIndex = 0, string $ipv6_address = '', int $ipv6_prefixlen = 0, string $ipv6_origin = ''): string @@ -354,7 +354,7 @@ private function processIpv6(array $device, int $ifIndex = 0, string $ipv6_addre return '0'; } - private function cleanupIpv6(array $device, array $valid) + private function cleanupIpv6(array $device, array $valid): void { Log::debug('IPv6 -> Cleanup');