src/EmailServiceClient.php
private function assertTrustedIp()
    {
        $baseHost = parse_url($this->serviceUri, PHP_URL_HOST);
        $serviceIp = gethostbyname(
            $baseHost
        );

        if ( ! $this->isTrustedIpAddress($serviceIp)) {
            throw new EmailServiceClientException(
                'The service has an IP that is not trusted ... ' . $serviceIp,
                1503511662
            );
        }
    }
private function assertTrustedIp()
    {
        $baseHost = parse_url($this->serviceUri, PHP_URL_HOST);
        $serviceIp = gethostbyname(
            $baseHost
        );

        if ( ! $this->isTrustedIpAddress($serviceIp)) {
            throw new EmailServiceClientException(
                'The service has an IP that is not trusted ... ' . $serviceIp,
                1503511662
            );
        }
    }
private function assertTrustedIp ( ) { $ baseHost = parse_url ( $ this -> serviceUri , PHP_URL_HOST ) ; $ serviceIp = gethostbyname ( $ baseHost ) ; if ( ! $ this -> isTrustedIpAddress ( $ serviceIp ) ) { throw new EmailServiceClientException ( 'The service has an IP that is not trusted ... ' . $ serviceIp , 1503511662 ) ; } }
Determine whether any of the service's IPs are not in the
trusted ranges

@throws Exception
Determine whether any of the service s IPs are not in the trusted ranges