Fix up spacing and brackets for if statements.