Searched refs:ipOrRange (Results 1 – 2 of 2) sorted by relevance
114 * @param string $ipOrRange An IP address or CIDR range.118 public static function ipMatches(string $ip, string $ipOrRange): bool argument124 if (strpos($ipOrRange, '/') === false) {125 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);128 return Ip::ipInRange($ip, $ipOrRange);
134 * @param string $ipOrRange The IP or IP range to test against.139 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument141 $result = Ip::ipMatches($ip, $ipOrRange);