[feature/passwords] Add missing function documentation

Additionally, a new line has been added to make the code look nicer.

PHPBB3-11610