[ticket/10404] Fix codesniffer complaint about anonymous function

PHPBB3-10404