phpcpd

phpcpd

TLDR

Analyse duplicated code for a specific file or directory

>_ phpcpd [path/to/file_or_directory]
copy

Analyse using fuzzy matching for variable names

>_ phpcpd --fuzzy [path/to/file_or_directory]
copy

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

>_ phpcpd --min-lines [number_of_lines] [path/to/file_or_directory]
copy

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

>_ phpcpd --min-tokens [number_of_tokens] [path/to/file_or_directory]
copy

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

>_ phpcpd --exclude [path/to/excluded_directory] [path/to/file_or_directory]
copy

Output the results to a PHP-CPD XML file

>_ phpcpd --log-pmd [path/to/log_file] [path/to/file_or_directory]
copy

Copied to clipboard
free 100$ digital ocean credit