src/IpRange/IpWhitelist.php
private function isIpInWhitelist(array $whitelist, $ipAddress)
    {
        foreach ($whitelist as $ipRange) {
            if ($ipRange->containsIp($ipAddress)) {
                return true;
            }
        }
        return false;
    }
private function isIpInWhitelist(array $whitelist, $ipAddress)
    {
        foreach ($whitelist as $ipRange) {
            if ($ipRange->containsIp($ipAddress)) {
                return true;
            }
        }
        return false;
    }
private function isIpInWhitelist ( array $ whitelist , $ ipAddress ) { foreach ( $ whitelist as $ ipRange ) { if ( $ ipRange -> containsIp ( $ ipAddress ) ) { return true ; } } return false ; }
Returns whether or not the given IP address is in the given whitelist.
@param array $whitelist The given whitelist.
@param string $ipAddress The given IP address.
@return boolean Returns true if the IP address is in the whitelist and
false otherwise.
Returns whether or not the given IP address is in the given whitelist .