public static function getIdentifier(string $name) : string
    {
        return str_replace(
            '.',
            '',
            uniqid(
                preg_match(static::VALID_IDENTIFIER_FORMAT, $name)
                ? $name
                : static::DEFAULT_IDENTIFIER,
                true
            )
        );
    }
public static function getIdentifier(string $name) : string
    {
        return str_replace(
            '.',
            '',
            uniqid(
                preg_match(static::VALID_IDENTIFIER_FORMAT, $name)
                ? $name
                : static::DEFAULT_IDENTIFIER,
                true
            )
        );
    }
public static function getIdentifier ( string $ name ) : string { return str_replace ( '.' , '' , uniqid ( preg_match ( static :: VALID_IDENTIFIER_FORMAT , $ name ) ? $ name : static :: DEFAULT_IDENTIFIER , true ) ) ; }
Generates a valid unique identifier from the given name

@param string $name

@return string
Generates a valid unique identifier from the given name