applies PSR-1 and PSR-2 coding standards

changes done by PHP CS Fixer v0.3