Reformat src/ for consistent use of PSR code style
Update indentation and formating of /templates