[feature/api] Reformatting

Replaced space indentation with tabs according to the style guidelines

Updated normalizers to base output array on an input array with
field names.

PHPBB3-11595