This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
12
{
13
use NewsClientCommandTrait;
14
15
protected function configure()
16
{
17
parent::configure();
18
19
$this
20
->setName('news:article:id')
21
->addArgument(
22
'id',
23
InputArgument::REQUIRED,
24
'Article ID'
25
);
26
}
27
28
/**
29
* @param InputInterface $input
30
* @param OutputInterface $output
31
* @return int
32
*/
33
protected function execute(InputInterface $input, OutputInterface $output)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.