Skip to content

Instantly share code, notes, and snippets.

@winks
Created August 2, 2010 10:36
Show Gist options
  • Save winks/504453 to your computer and use it in GitHub Desktop.
Save winks/504453 to your computer and use it in GitHub Desktop.
$ find|sort
.
./soap_testidentifier.php
./x
./x/vendor
./x/vendor/soap_testidentifier.php
$ phpcpd --verbose --exclude x/vendor .
phpcpd 1.3.1 by Sebastian Bergmann.
Processing files
2 / 2 [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>] 100.00%
Found 1 exact clones with 24 duplicated lines in 2 files:
- x/vendor/soap_testidentifier.php:8-32
soap_testidentifier.php:8-32
18.46% duplicated lines out of 130 total lines of code.
------
A quick fix would be http://gist.github.com/500438 (has other problems)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment