Convert PHP files to comply with PSR-2 coding standards.

The php files now conform to PSR-2 coding standards. Indentation is now 4 spaces.

Partially fixes #33 for PHP files