Searched refs:ipOrRange (Results 1 – 2 of 2) sorted by relevance
141 * @param string $ipOrRange An IP address or CIDR range.145 public static function ipMatches(string $ip, string $ipOrRange): bool argument151 if (!str_contains($ipOrRange, '/')) {152 return Ip::ipToNumber($ip) === Ip::ipToNumber($ipOrRange);155 return Ip::ipInRange($ip, $ipOrRange);
204 * @param string $ipOrRange The IP or IP range to test against.209 public function test_ip_matches(string $ip, string $ipOrRange, bool $expected): void argument211 $result = Ip::ipMatches($ip, $ipOrRange);