PHP Coding Standards

This PR have a lot of changes, but it is just for coding standards.
I used php-cs-fixer, all levels (PSR-0 to PSR-2) and fixed inconsistant indentations (now all files have 4 spaces).