Code Duplication    Length = 21-21 lines in 2 locations

src/Mouf/Utils/Patcher/Commands/ApplyAllPatchesCommand.php 1 location

@@ 33-53 (lines=21) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function configure()
34
    {
35
        $this
36
        ->setName('patches:apply-all')
37
        ->setDescription('Apply pending patches.')
38
        ->setDefinition(array(
39
40
        ))
41
        ->setHelp(<<<EOT
42
Apply pending patches. You can select the type of patches to be applied using the options. Default patches are always applied.
43
44
Use patches:apply if you want to cherry-pick a particular patch.
45
EOT
46
        );
47
48
        foreach ($this->patchService->getTypes() as $type) {
49
            if ($type->getName() !== '') {
50
                $this->addOption($type->getName(), null, InputOption::VALUE_NONE, 'Applies patches of type "'.$type->getName().'". '.$type->getDescription());
51
            }
52
        }
53
    }
54
55
    /**
56
     * {@inheritdoc}

src/Mouf/Utils/Patcher/Commands/ResetPatchesCommand.php 1 location

@@ 33-53 (lines=21) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    protected function configure()
34
    {
35
        $this
36
        ->setName('patches:reset')
37
        ->setDescription('Reset database and reapply all patches.')
38
        ->setDefinition(array(
39
40
        ))
41
        ->setHelp(<<<EOT
42
Reset the database and reapplies all pending patches. You can select the type of patches to be applied using the options. Default patches are always applied.
43
44
Use patches:apply-all if you want to apply remaining patches without resetting the database.
45
EOT
46
        );
47
48
        foreach ($this->patchService->getTypes() as $type) {
49
            if ($type->getName() !== '') {
50
                $this->addOption($type->getName(), null, InputOption::VALUE_NONE, 'Applies patches of type "'.$type->getName().'". '.$type->getDescription());
51
            }
52
        }
53
    }
54
55
    /**
56
     * {@inheritdoc}