src/Connection/PhpiredisSocketConnection.php
protected static function getAddress(ParametersInterface $parameters)
    {
        if (filter_var($host = $parameters->host, FILTER_VALIDATE_IP)) {
            return $host;
        }

        if ($host === $address = gethostbyname($host)) {
            return false;
        }

        return $address;
    }
protected static function getAddress(ParametersInterface $parameters)
    {
        if (filter_var($host = $parameters->host, FILTER_VALIDATE_IP)) {
            return $host;
        }

        if ($host === $address = gethostbyname($host)) {
            return false;
        }

        return $address;
    }
protected static function getAddress ( ParametersInterface $ parameters ) { if ( filter_var ( $ host = $ parameters -> host , FILTER_VALIDATE_IP ) ) { return $ host ; } if ( $ host === $ address = gethostbyname ( $ host ) ) { return false ; } return $ address ; }
Gets the address of an host from connection parameters.

@param ParametersInterface $parameters Parameters used to initialize the connection.

@return string
Gets the address of an host from connection parameters .