Skip to content

Commit

Permalink
deprecates integration 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 a2c9845
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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
*/
class CopyPasteDetectorCommand extends AbstractPluginCommand
{
Expand All @@ -31,11 +32,13 @@ 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);
return $this->_accesstoken;

Check failure on line 41 in src/Command/CopyPasteDetectorCommand.php

View workflow job for this annotation

GitHub Actions / CI test (make validate)

UndefinedThisPropertyFetch

src/Command/CopyPasteDetectorCommand.php:41:16: UndefinedThisPropertyFetch: Instance property MoodlePluginCI\Command\CopyPasteDetectorCommand::$_accesstoken is not defined (see https://psalm.dev/041)
$timer = new Timer();
$timer->start();

Expand Down

0 comments on commit a2c9845

Please sign in to comment.