public function matchUri($uri, & $matches = [])
    {
        if ($this->matchAbsoluteUri($uri, $matches)) {
            return true;
        }

        return $this->matchRelativeUri($uri, $matches);
    }
public function matchUri($uri, & $matches = [])
    {
        if ($this->matchAbsoluteUri($uri, $matches)) {
            return true;
        }

        return $this->matchRelativeUri($uri, $matches);
    }
public function matchUri ( $ uri , & $ matches = [ ] ) { if ( $ this -> matchAbsoluteUri ( $ uri , $ matches ) ) { return true ; } return $ this -> matchRelativeUri ( $ uri , $ matches ) ; }
Matches the string against URI or relative-ref ABNF.
@param string $uri The string to match
@param array $matches Provides the matched sub sections from the match
@return bool True if the URI matches, false if not
Matches the string against URI or relative - ref ABNF .