π₯ Coding standard configuration.
-
Install this package:
$ composer require --dev czende/coding-standard
-
Import a configuration file in
easy-coding-standard.yml
in the root of your project:imports: - { resource: vendor/czende/coding-standard/easy-coding-standard.yml }
-
Run in CLI (remember to have proper composer bin directory config -
"bin-dir": "bin"
)
# dry
php bin/ecs check src
# fix
php bin/ecs check src --fix