original_string: public function createPathInformation($streamUrl)
      {
          $pathInfo     = $this->parsePath($streamUrl);
          $repository   = $this->getRepository($pathInfo);
          $ref          = isset($pathInfo['fragment']) ? $pathInfo['fragment'] : 'HEAD';
  
          $arguments  = array();
          if (isset($pathInfo['query'])) {
              parse_str($pathInfo['query'], $arguments);
          }
  
          $fullPath   = $repository->resolveFullPath($pathInfo['path']);
          $url        =  $this->protocol.'://'.$fullPath
                        .'#'.$ref
                        .'?'.http_build_query($arguments);
  
          return new PathInformation($repository, $url, $fullPath, $ref, $arguments);
      }
code: public function createPathInformation($streamUrl)
      {
          $pathInfo     = $this->parsePath($streamUrl);
          $repository   = $this->getRepository($pathInfo);
          $ref          = isset($pathInfo['fragment']) ? $pathInfo['fragment'] : 'HEAD';
  
          $arguments  = array();
          if (isset($pathInfo['query'])) {
              parse_str($pathInfo['query'], $arguments);
          }
  
          $fullPath   = $repository->resolveFullPath($pathInfo['path']);
          $url        =  $this->protocol.'://'.$fullPath
                        .'#'.$ref
                        .'?'.http_build_query($arguments);
  
          return new PathInformation($repository, $url, $fullPath, $ref, $arguments);
      }
code_tokens: public function createPathInformation ( $ streamUrl ) { $ pathInfo = $ this -> parsePath ( $ streamUrl ) ; $ repository = $ this -> getRepository ( $ pathInfo ) ; $ ref = isset ( $ pathInfo [ 'fragment' ] ) ? $ pathInfo [ 'fragment' ] : 'HEAD' ; $ arguments = array ( ) ; if ( isset ( $ pathInfo [ 'query' ] ) ) { parse_str ( $ pathInfo [ 'query' ] , $ arguments ) ; } $ fullPath = $ repository -> resolveFullPath ( $ pathInfo [ 'path' ] ) ; $ url = $ this -> protocol . '://' . $ fullPath . '#' . $ ref . '?' . http_build_query ( $ arguments ) ; return new PathInformation ( $ repository , $ url , $ fullPath , $ ref , $ arguments ) ; }
docstring: Returns the path information for a given stream URL
  
  @param   string  $streamUrl      The URL given to the stream function
  @return  PathInformation         The path information representing the stream URL
docstring_tokens: Returns the path information for a given stream URL