Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Tools/Analyzer/Phpcpd.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ function ($extension) use ($isOlderVersion) {
$args['progress'] = '';
}
if ($phpcpdNames) {
$namesOptions = $isOlderVersion ? 'names' : 'suffix';
$args[$namesOptions] = \Edge\QA\escapePath(implode(',', $phpcpdNames));
if ($isOlderVersion) {
$args['names'] = \Edge\QA\escapePath(implode(',', $phpcpdNames));
} else {
foreach ($phpcpdNames as $name) {
$args[] = '--suffix "' . \Edge\QA\escapePath($name) . '"';
Comment thread
omarlopesino marked this conversation as resolved.
Outdated
}
}
}
if ($this->options->isSavedToFiles) {
$args['log-pmd'] = $this->tool->getEscapedXmlFile();
Expand Down