Fixed PHPCS errors

Line 184 | ERROR | Line indented incorrectly; expected at least 8 spaces, found 7
Line 211 | ERROR | Whitespace found at end of line
Line 527 | ERROR | Expected "if (...) {\n"; found "if(...)\n        {\n"
Line 532 | ERROR | Expected "if (...) {\n"; found "if(...)\n        {\n"