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...
20
{
21
const COMMAND_NAME = 'postfix:processing-logs';
22
23
/**
24
* Configures the command.
25
*
26
* @return void
27
*
28
* @throws InvalidArgumentException
29
*/
30
protected function configure()
31
{
32
parent::configure();
33
34
$this
35
->setName(self::COMMAND_NAME)
36
->setDescription('process postfix logs for support');
37
}
38
39
/**
40
* Executes the command.
41
*
42
* @param InputInterface $input
43
* @param OutputInterface $output
44
*
45
* @return int|null
46
*/
47
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.