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