Fixing some code style issues (new lines before foreach)