phpcbf
Fix violations detected by phpcs. More information: https://github.com/squizlabs/PHP_CodeSniffer.
- Fix issues in the specified directory (defaults to the PEAR standard):
phpcbf
- Display a list of installed coding standards:
phpcbf -i
- Specify a coding standard to validate against:
phpcbf --standard
- Specify comma-separated file extensions to include when sniffing:
phpcbf --extensions
- Specify a comma-separated list of files to load before processing:
phpcbf --bootstrap
- Don't recurse into subdirectories:
phpcbf -l
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
