Fixed issue: PSR-2 coding style

+ The keyword elseif SHOULD be used instead of else if so that all control
  keywords look like single words
+ Opening braces for classes MUST go on the next line, and closing braces MUST
  go on the next line after the body.