original_string: protected function detectPathInfo()
      {
          $uri = $this->getRequestUri();
  
          $pathInfo = '/' . trim(substr($uri, strlen($this->getBaseUrl())), '/');
  
          if (false !== $pos = strpos($pathInfo, '?')) {
              $pathInfo = substr($pathInfo, 0, $pos);
          }
          return $pathInfo;
      }
code: protected function detectPathInfo()
      {
          $uri = $this->getRequestUri();
  
          $pathInfo = '/' . trim(substr($uri, strlen($this->getBaseUrl())), '/');
  
          if (false !== $pos = strpos($pathInfo, '?')) {
              $pathInfo = substr($pathInfo, 0, $pos);
          }
          return $pathInfo;
      }
code_tokens: protected function detectPathInfo ( ) { $ uri = $ this -> getRequestUri ( ) ; $ pathInfo = '/' . trim ( substr ( $ uri , strlen ( $ this -> getBaseUrl ( ) ) ) , '/' ) ; if ( false !== $ pos = strpos ( $ pathInfo , '?' ) ) { $ pathInfo = substr ( $ pathInfo , 0 , $ pos ) ; } return $ pathInfo ; }
docstring: Detect the path info for the request
  
  @return string
docstring_tokens: Detect the path info for the request