please put brackets for in-function statements in the same line than the statement like

if (...) {
....
}