1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 21:02:07 +02:00
tldr/pages/common/phpcbf.md
Pierre Rudloff 3bdfdd2bfd
phpcs, phpcbf: explain that file extensions are comma-separated (#4429)
* phpcs, phpcbf: explain that file extensions are comma-separated

* phpcs, phpcbf: revert file extensions token
2020-10-05 14:35:06 +01:00

28 lines
715 B
Markdown

# 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 {{path/to/directory}}`
- Display a list of installed coding standards:
`phpcbf -i`
- Specify a coding standard to validate against:
`phpcbf {{path/to/directory}} --standard {{standard}}`
- Specify comma-separated file extensions to include when sniffing:
`phpcbf {{path/to/directory}} --extensions {{file_extension(s)}}`
- A comma-separated list of files to load before processing:
`phpcbf {{path/to/directory}} --bootstrap {{file(s)}}`
- Don't recurse into subdirectories:
`phpcbf {{path/to/directory}} -l`