phpcbf

Fix violations detected by phpcs.

TLDR

Fix issues in the specified directory (defaults to the PEAR standard)

$ phpcbf [path/to/directory]
copy

Display a list of installed coding standards

$ phpcbf -i
copy

Specify a coding standard to validate against

$ phpcbf [path/to/directory] --standard [standard]
copy

Specify comma-separated file extensions to include when sniffing

$ phpcbf [path/to/directory] --extensions [file_extension(s)]
copy

A comma-separated list of files to load before processing

$ phpcbf [path/to/directory] --bootstrap [file(s)]
copy

Don't recurse into subdirectories

$ phpcbf [path/to/directory] -l
copy

Copied to clipboard
free 100$ digital ocean credit