From c162362ee9131af4616d1ea421b8301a0a4945ca Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 2 Oct 2020 12:41:24 +0200 Subject: [PATCH] phpcbf: add page (#4406) --- pages/common/phpcbf.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/phpcbf.md 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`