[ticket/12159] Fix codesniffer complaints due to profilefields and passwords

The two PRs regarding profilefields and passwords manager that were recently
merged caused a few codesniffer complaints that are fixed by these changes.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-12159