protected function buildHostString(array $config, $separator)
    {
        if (isset($config['port']) && ! empty($config['port'])) {
            return $config['host'].$separator.$config['port'];
        } else {
            return $config['host'];
        }
    }
protected function buildHostString(array $config, $separator)
    {
        if (isset($config['port']) && ! empty($config['port'])) {
            return $config['host'].$separator.$config['port'];
        } else {
            return $config['host'];
        }
    }
protected function buildHostString ( array $ config , $ separator ) { if ( isset ( $ config [ 'port' ] ) && ! empty ( $ config [ 'port' ] ) ) { return $ config [ 'host' ] . $ separator . $ config [ 'port' ] ; } else { return $ config [ 'host' ] ; } }
Build a host string from the given configuration.

@param  array  $config
@param  string  $separator
@return string
Build a host string from the given configuration .