phpcpd
A copy and paste detector for PHP code. More information: https://github.com/sebastianbergmann/phpcpd.
- Analyze duplicated code for a specific file or directory:
phpcpd
- Analyze using fuzzy matching for variable names:
phpcpd --fuzzy
- Specify a minimum number of identical lines (defaults to 5):
phpcpd --min-lines
- Specify a minimum number of identical tokens (defaults to 70):
phpcpd --min-tokens
- Exclude a directory from analysis (must be relative to the source):
phpcpd --exclude
- Output the results to a PHP-CPD XML file:
phpcpd --log-pmd
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
