Fix PHP code with PHP Coding Standards Fixer

Fix code in app directory with php-cs-fixer.
Add configuration for php-cs-fixer tool.
Add information on how to use php-cs-fixer to CONTRIBUTING.md