- Fixed ifs and elseifs
- Removed trailing whitespace;  - Ensured space between for/foreach and (
- Conformed to the Blaze coding standards version 1;