Returns the pattern outline.
The pattern outline is the path pattern but normalized so that all placeholders are equal strings and default values are removed.
string $path: The path for which we want the normalized outline.
string The path pattern outline.
public static function getPatternOutline($path) {
return preg_replace('#\\{\\w+\\}#', '%', $path);
}