add blank line before foreach statement
Add blank line before if statement
Add blank line before if statement right after closing bracket
Null should be lowercase

According to Joomla Code style sniffer
add space after if
some general automatic code style fixes

- aling variable assignations
- add empty line before return statement
- add space right after foreach,else if...
Add empty line after closing brackets
More code style fies
Merge pull request #8 from javigomez/fix_code_style_in_fof_table

Fix code style in FOFtable