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;
    }
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;
    }
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 ; }
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
Check if there is a route matches the path info and method and return the parameters or return false when not matched