From 5522142886f4c3084777bca5e9c201e2f4dc5644 Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Thu, 14 Dec 2023 09:52:25 -0800 Subject: [PATCH] deprecates integration with PHP Copy/Paste Detector (PHPCPD) library. --- src/Command/CopyPasteDetectorCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Command/CopyPasteDetectorCommand.php b/src/Command/CopyPasteDetectorCommand.php index e0f95d5e..f4bd8c66 100644 --- a/src/Command/CopyPasteDetectorCommand.php +++ b/src/Command/CopyPasteDetectorCommand.php @@ -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 { @@ -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();