Searched refs:ipOrRange (Results 1 – 2 of 2) sorted by relevance
136 * @param string $ipOrRange An IP address or CIDR range.140 public static function ipMatches(string $ip, string $ipOrRange): bool argument146 if (!str_contains($ipOrRange, '/')) {147 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);150 return Ip::ipInRange($ip, $ipOrRange);
160 * @param string $ipOrRange The IP or IP range to test against.165 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument167 $result = Ip::ipMatches($ip, $ipOrRange);