[ticket/9725/ascraeus] Code sniffer fixes

PHPBB3-9725