phpcpd(1) PHPCPD command line interface


phpcpd [,options/] [,--/] [,<values>/]...


Copy and paste detector (CPD) for PHP code. This tool provides details about duplicated lines inside a PHP project.


Files and directories to analyze


A comma-separated list of file names to check [default: ["*.php"]]
A comma-separated list of file names to exclude
Exclude a directory from code analysis (must be relative to source) (multiple values allowed)
Write result in PMD-CPD XML format to file
Minimum number of identical lines [default: 5]
Minimum number of identical tokens [default: 70]
Fuzz variable names
Show progress bar
-h, --help
Display this help message
-q, --quiet
Do not output any message
-V, --version
Display this application version
Force ANSI output
Disable ANSI output
-n, --no-interaction
Do not ask any interactive question
-v|vv|vvv, --verbose
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug