[feature/api] Reformatting

Replaced space indentation with tab indentation according to the
codestyle guidelines.

Updated normalizers to use arrays to generate outputs.

PHPBB3-11595