The bracket should be on a new line and a empty line before the foreach.