*/
public static function checkIp($requestIp, $ips)
{
- if (!is_array($ips)) {
+ if (!\is_array($ips)) {
$ips = array($ips);
}
return self::$checkedIps[$cacheKey];
}
- if (!((extension_loaded('sockets') && defined('AF_INET6')) || @inet_pton('::1'))) {
+ if (!((\extension_loaded('sockets') && \defined('AF_INET6')) || @inet_pton('::1'))) {
throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".');
}