## Context: In PHP it is not mandatory to use coding standards (spaces, brace placement, etc). To define coding standards in the language, the PSRs were created. ## Tasks: * [ ] Implement of `friendsofphp/php-cs-fixer` package and apply standard definition. * [ ] Implement script in composer.json to run the check and fix. Example: ```json "scripts": { "post-install-cmd": [ "composer install -d tests/tools/php-cs-fixer/" ], "post-update-cmd": [ "composer install -d tests/tools/php-cs-fixer/" ], "cs:check": "tests/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff", "cs:fix": "tests/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix" ```
Context:
In PHP it is not mandatory to use coding standards (spaces, brace placement, etc). To define coding standards in the language, the PSRs were created.
Tasks:
friendsofphp/php-cs-fixerpackage and apply standard definition.