original_string: private function split($url)
      {
          $parts = parse_url($url) + array(
                  'scheme' => 'http',
                  'query' => '',
                  'path' => '',
              );
  
          $parts['prefix'] = '';
          if (isset($parts['host'])) {
              $parts['prefix'] = sprintf('%s://%s', $parts['scheme'], $parts['host']);
          }
  
          return $parts;
      }
code: private function split($url)
      {
          $parts = parse_url($url) + array(
                  'scheme' => 'http',
                  'query' => '',
                  'path' => '',
              );
  
          $parts['prefix'] = '';
          if (isset($parts['host'])) {
              $parts['prefix'] = sprintf('%s://%s', $parts['scheme'], $parts['host']);
          }
  
          return $parts;
      }
code_tokens: private function split ( $ url ) { $ parts = parse_url ( $ url ) + array ( 'scheme' => 'http' , 'query' => '' , 'path' => '' , ) ; $ parts [ 'prefix' ] = '' ; if ( isset ( $ parts [ 'host' ] ) ) { $ parts [ 'prefix' ] = sprintf ( '%s://%s' , $ parts [ 'scheme' ] , $ parts [ 'host' ] ) ; } return $ parts ; }
docstring: Splits url to parts
  @param string $url
  @return array
docstring_tokens: Splits url to parts