original_string: private function extractHost($url)
      {
          $urlParts = parse_url($url);
          if (isset($urlParts['host']) && strlen($host = $urlParts['host'])) {
              return $host;
          }
  
          return false;
      }
code: private function extractHost($url)
      {
          $urlParts = parse_url($url);
          if (isset($urlParts['host']) && strlen($host = $urlParts['host'])) {
              return $host;
          }
  
          return false;
      }
code_tokens: private function extractHost ( $ url ) { $ urlParts = parse_url ( $ url ) ; if ( isset ( $ urlParts [ 'host' ] ) && strlen ( $ host = $ urlParts [ 'host' ] ) ) { return $ host ; } return false ; }
docstring: Extract host from URL
  
  @param string $url URL
  
  @return string|false
docstring_tokens: Extract host from URL