Update for PSR-1/PSR-2 compliance

Tabs to spaces
Blank line at EOF
Class opening brackets on newline
If opening brackets on same line