Remove cpd script

This commit is contained in:
Ivan Zinovyev 2018-01-24 19:32:28 +03:00
parent 65b29a453c
commit e284b5f2ea
1 changed files with 0 additions and 10 deletions

View File

@ -1,10 +0,0 @@
<?php
foreach (simplexml_load_file('cpd-output.xml')->duplication as $duplication) {
$files = $duplication->xpath('file');
foreach ($files as $file) {
echo $file['path'].':'.$file['line'].':1: warning: '.$duplication['lines'].' copy-pasted lines from: '
.implode(', ', array_map(function ($otherFile) { return $otherFile['path'].':'.$otherFile['line']; },
array_filter($files, function ($f) use (&$file) { return $f != $file; }))).PHP_EOL;
}
}
?>