Skip to content

Instantly share code, notes, and snippets.

@marc1706
Created October 5, 2013 08:29
Show Gist options
  • Save marc1706/6838325 to your computer and use it in GitHub Desktop.
Save marc1706/6838325 to your computer and use it in GitHub Desktop.
Run phpcpd on all PHP files and output into xml report file in parent folder.
wget https://phar.phpunit.de/phpcpd.phar
find -name *.php | xargs php phpcpd.phar --log-pmd ../report_name.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment