CmdID

CmdID / Commands

phpcpd

A copy and paste detector for PHP code. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Analyze duplicated code for a specific file or directory

phpcpd path/to/file_or_directoryIdentify

Analyze using fuzzy matching for variable names

phpcpd --fuzzy path/to/file_or_directoryIdentify

Specify a minimum number of identical lines (defaults to 5)

phpcpd --min-lines number_of_lines path/to/file_or_directoryIdentify

Specify a minimum number of identical tokens (defaults to 70)

phpcpd --min-tokens number_of_tokens path/to/file_or_directoryIdentify

Exclude a directory from analysis (must be relative to the source)

phpcpd --exclude path/to/excluded_directory path/to/file_or_directoryIdentify

Output the results to a PHP-CPD XML file

phpcpd --log-pmd path/to/log_file path/to/file_or_directoryIdentify