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...
15
{
16
/** @var MigrationExecutor */
17
private $executor;
18
19
/**
20
* @param MigrationExecutor $executor
21
*/
22
public function __construct(MigrationExecutor $executor)
23
{
24
parent::__construct('slumber:migrate:down');
25
26
$this->setDescription('Do downwards data storage migration (singular only)')
27
->addArgument('name', InputArgument::REQUIRED, 'The full name of the migration');
28
29
$this->executor = $executor;
30
}
31
32
/**
33
* @param InputInterface $input
34
* @param OutputInterface $output
35
*
36
* @return mixed
37
*/
38
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.