fix foreach coding style
Merge pull request #911 from goatherd/fix-foreach-as-style

fix foreach coding style