-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
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-fixerpackage and apply standard definition. - Implement script in composer.json to run the check and fix. Example:
"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"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers