[ticket/12273] Use array_merge instead of +=

PHPBB3-12273
[ticket/12273] Fix unit test for multi line $vars

PHPBB3-12273
[ticket/12273] Fix long $vars lines for existing events

PHPBB3-12273