Use PSR Compliant Formatting

I've updated the spacing and syntax to make the codebase compatible with the PSR coding standards.