Skip to content

Commit

Permalink
type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Npeca75 committed Feb 29, 2024
1 parent 85eae7a commit b2c19ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions LibreNMS/Modules/Ipv6Addresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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 = [];

Expand All @@ -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
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit b2c19ae

Please sign in to comment.