mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 13:46:53 +00:00
Update cheatsheets
This commit is contained in:
33
phpcbf
Normal file
33
phpcbf
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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_extension1,file_extension2,...}}`
|
||||
|
||||
- A comma-separated list of files to load before processing:
|
||||
|
||||
`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...)}}`
|
||||
|
||||
- Don't recurse into subdirectories:
|
||||
|
||||
`phpcbf {{path/to/directory}} -l`
|
||||
Reference in New Issue
Block a user