Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
30 | public static function Validate(string $ip_address): bool |
||
31 | { |
||
32 | if (str_contains($ip_address, IPAddress::IPV4_SEPARATOR)) { |
||
33 | return self::validateIPv4Address($ip_address); |
||
34 | } |
||
35 | |||
36 | if (str_contains($ip_address, IPAddress::IPV6_SEPARATOR)) { |
||
37 | return self::validateIPv6Address($ip_address); |
||
38 | } |
||
39 | |||
40 | return false; |
||
41 | } |
||
77 |