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:up');
25
26
$this->setDescription('Do upwards data migration (all at once or a one single one)')
27
->addArgument('name', InputArgument::OPTIONAL, 'The full name of a single migration. If none is given all will be executed');
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.