php-cs-fixer
Automatic coding style fixer for PHP. More information: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.
- Execute code style fixing in the current directory:
php-cs-fixer fix
- Execute code style fixing for a specific directory:
php-cs-fixer fix
- Simulate fixing code style, reporting issues without applying changes:
php-cs-fixer fix --dry-run
- Execute code style fixes using specific rules:
php-cs-fixer fix --rules=
- Display the rules that have been applied:
php-cs-fixer fix --verbose
- Output the results in a different format:
php-cs-fixer fix --format=
- Display files that require fixing:
php-cs-fixer list-files
- Describe a rule or ruleset:
php-cs-fixer describe
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
