DOKK / manpages / debian 12 / phpcpd / phpcpd.1.en
PHPCPD(1) User Commands PHPCPD(1)

phpcpd - PHPCPD command line interface

phpcpd [options] <directory>

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

Options for selecting files:

(default: .php; can be given multiple times)
Exclude files with <path> in their path from the analysis (can be given multiple times)

Options for analysing files:

Fuzz variable names
Minimum number of identical lines (default: 5)
Minimum number of identical tokens (default: 70)

Options for report generation:

Write log in PMD-CPD XML format to <file>
July 2022 phpcpd 6.0.3