mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
phpcbf: add page (#4406)
This commit is contained in:
parent
d744f94161
commit
c162362ee9
1 changed files with 28 additions and 0 deletions
28
pages/common/phpcbf.md
Normal file
28
pages/common/phpcbf.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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 file extension(s) 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`
|
Loading…
Add table
Reference in a new issue