Skip to main content

Fix violations detected by phpcs (PHP_CodeSniffer).

# To fix issues in the specified directory (defaults to the PEAR standard):
phpcbf <path/to/directory>

# To display a list of installed coding standards:
phpcbf -i

# To specify a coding standard to validate against:
phpcbf <path/to/directory> --standard <standard>

# To specify comma-separated file extensions to include when sniffing:
phpcbf <path/to/directory> --extensions <file_extension(s)>

# To a comma-separated list of files to load before processing:
phpcbf <path/to/directory> --bootstrap <file(s)>

# To don't recurse into subdirectories:
phpcbf <path/to/directory> -l