[ticket/12658] Fix typo and coding style mistakes

PHPBB3-12658