[ticket/11638] Fixed typo in the variable name.

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11638
[ticket/11638] Fixed not following guidelines for brackets

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11638