[ticket/11731] Changes for consistency and code quality

PHPBB3-11731
[ticket/11731] Blank line between global declaration and sql

PHPBB3-11731