private function validateTagName(string $name): void
    {
        if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) {
            throw new \InvalidArgumentException(
                'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, '
                . 'hyphens and backslashes.'
            );
        }
    }
private function validateTagName(string $name): void
    {
        if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) {
            throw new \InvalidArgumentException(
                'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, '
                . 'hyphens and backslashes.'
            );
        }
    }
private function validateTagName ( string $ name ) : void { if ( ! preg_match ( '/^' . StandardTagFactory :: REGEX_TAGNAME . '$/u' , $ name ) ) { throw new \ InvalidArgumentException ( 'The tag name "' . $ name . '" is not wellformed. Tags may only consist of letters, underscores, ' . 'hyphens and backslashes.' ) ; } }
Validates if the tag name matches the expected format, otherwise throws an exception.
Validates if the tag name matches the expected format otherwise throws an exception .