[ticket/12852] Add space after if

PHPBB3-12852
[ticket/12852] Add unit tests

PHPBB3-12852