Fixed some "Line indented incorrectly" issues
Replaced tabs with 4 spaces
Replaced `else if` with `elseif`
Don't use inline control structures
Fixed indentation issues
Fixed phpcs' complaints about multi-line statements
Removed closing tag
Use lowercase `true`, `false`, `null`, and `as`
Fixed some whitespace and line break complaints
Put opening brace on a new line
Broke lines exceeding 120 characters