[feature/oauth] Changes due to code review

PHPBB3-11673