Skip to content

Commit

Permalink
deprecates integration with PHP Copy/Paste Detector (PHPCPD) library.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Dec 14, 2023
1 parent 3d85518 commit 5522142
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/CopyPasteDetectorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

/**
* Run PHP Copy/Paste Detector on a plugin.
* @deprecated PHPCPD has been abandoned, this integration is slated for removal without replacement.
*/
class CopyPasteDetectorCommand extends AbstractPluginCommand
{
Expand All @@ -31,11 +32,12 @@ protected function configure(): void
parent::configure();

$this->setName('phpcpd')
->setDescription('Run PHP Copy/Paste Detector on a plugin');
->setDescription('Run PHP Copy/Paste Detector on a plugin (DEPRECATED)');
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
$timer = new Timer();
$timer->start();

Expand Down

0 comments on commit 5522142

Please sign in to comment.