[ticket/11981] Fix code sniffer complaints

PHPBB3-11981