original_string: protected function parseUrl($url = "")
      {
          $parsed = ($url) ? parse_url($url) : parse_url($this->_env['REQUEST_URI']);
          
          if (preg_match('/[a-zA-Z0-9_]+\.php/i', $parsed['path'], $matches)) {
              $parsed['path'] = preg_replace("/$matches[0]/", '/', $parsed['path']);
          }
          
          return $parsed;
      }
code: protected function parseUrl($url = "")
      {
          $parsed = ($url) ? parse_url($url) : parse_url($this->_env['REQUEST_URI']);
          
          if (preg_match('/[a-zA-Z0-9_]+\.php/i', $parsed['path'], $matches)) {
              $parsed['path'] = preg_replace("/$matches[0]/", '/', $parsed['path']);
          }
          
          return $parsed;
      }
code_tokens: protected function parseUrl ( $ url = "" ) { $ parsed = ( $ url ) ? parse_url ( $ url ) : parse_url ( $ this -> _env [ 'REQUEST_URI' ] ) ; if ( preg_match ( '/[a-zA-Z0-9_]+\.php/i' , $ parsed [ 'path' ] , $ matches ) ) { $ parsed [ 'path' ] = preg_replace ( "/$matches[0]/" , '/' , $ parsed [ 'path' ] ) ; } return $ parsed ; }
docstring: Get parsed url
  
  @param string $url Url to parse
  @return array Parsed Url
docstring_tokens: Get parsed url