Fix formatting

Add a new line after the last brace for all of these if statements (except the last one, obviously) please, and the other ones below (and in other files below as well)