[ticket/12366] Conform to new event coding guidelines

PHPBB3-12366