Refs #10507. fix indent
Refs #10507. changed single line for loops so clang won't warn