original_string: public function match($pathInfo, $method = null)
      {
          $pathInfo = rtrim($pathInfo, '/');
          !$pathInfo && $pathInfo = '/';
          foreach ($this->routes as $id => $route) {
              if (false !== ($parameters = $this->matchRoute($pathInfo, $method, $id))) {
                  return $parameters;
              }
          }
          return false;
      }
code: public function match($pathInfo, $method = null)
      {
          $pathInfo = rtrim($pathInfo, '/');
          !$pathInfo && $pathInfo = '/';
          foreach ($this->routes as $id => $route) {
              if (false !== ($parameters = $this->matchRoute($pathInfo, $method, $id))) {
                  return $parameters;
              }
          }
          return false;
      }
code_tokens: public function match ( $ pathInfo , $ method = null ) { $ pathInfo = rtrim ( $ pathInfo , '/' ) ; ! $ pathInfo && $ pathInfo = '/' ; foreach ( $ this -> routes as $ id => $ route ) { if ( false !== ( $ parameters = $ this -> matchRoute ( $ pathInfo , $ method , $ id ) ) ) { return $ parameters ; } } return false ; }
docstring: Check if there is a route matches the path info and method,
  and return the parameters, or return false when not matched
  
  @param  string $pathInfo    The path info to match
  @param  string|null $method The request method to match, maybe GET, POST, etc
  @return false|array
docstring_tokens: Check if there is a route matches the path info and method and return the parameters or return false when not matched