original_string: private static function getProxyConfiguration($url)
      {
          $hostname = UrlHelper::getHostFromUrl($url);
  
          if (Url::isLocalHost($hostname)) {
              return array(null, null, null, null);
          }
  
          // proxy configuration
          $proxyHost = Config::getInstance()->proxy['host'];
          $proxyPort = Config::getInstance()->proxy['port'];
          $proxyUser = Config::getInstance()->proxy['username'];
          $proxyPassword = Config::getInstance()->proxy['password'];
  
          return array($proxyHost, $proxyPort, $proxyUser, $proxyPassword);
      }
code: private static function getProxyConfiguration($url)
      {
          $hostname = UrlHelper::getHostFromUrl($url);
  
          if (Url::isLocalHost($hostname)) {
              return array(null, null, null, null);
          }
  
          // proxy configuration
          $proxyHost = Config::getInstance()->proxy['host'];
          $proxyPort = Config::getInstance()->proxy['port'];
          $proxyUser = Config::getInstance()->proxy['username'];
          $proxyPassword = Config::getInstance()->proxy['password'];
  
          return array($proxyHost, $proxyPort, $proxyUser, $proxyPassword);
      }
code_tokens: private static function getProxyConfiguration ( $ url ) { $ hostname = UrlHelper :: getHostFromUrl ( $ url ) ; if ( Url :: isLocalHost ( $ hostname ) ) { return array ( null , null , null , null ) ; } // proxy configuration $ proxyHost = Config :: getInstance ( ) -> proxy [ 'host' ] ; $ proxyPort = Config :: getInstance ( ) -> proxy [ 'port' ] ; $ proxyUser = Config :: getInstance ( ) -> proxy [ 'username' ] ; $ proxyPassword = Config :: getInstance ( ) -> proxy [ 'password' ] ; return array ( $ proxyHost , $ proxyPort , $ proxyUser , $ proxyPassword ) ; }
docstring: Returns Proxy to use for connecting via HTTP to given URL
  
  @param string $url
  @return array
docstring_tokens: Returns Proxy to use for connecting via HTTP to given URL