diff --git a/pages/common/phpcbf.md b/pages/common/phpcbf.md new file mode 100644 index 000000000..315e11735 --- /dev/null +++ b/pages/common/phpcbf.md @@ -0,0 +1,28 @@ +# phpcbf + +> Fix violations detected by phpcs. +> More information: . + +- 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`