[ticket/12610] Correct codu=ing style and remove unused variable

PHPBB3-12610