Expected "if (...) {\n"; found "if(...){\n".
Whitespace found at end of line.
No space found after comma in function call.
Whitespace found at end of line.
else must start on a new line.
Expected "else {\n"; found "else{\n".
Whitespace found at end of line.
Expected "if (...) {\n"; found "if(...){\n".