Passed
Push — master ( b12c89...119ef1 )
by Allan
02:13
created

ApplyCommand::getBehaviourFlags()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerPatches\Composer\Commands;
7
8
use Symfony\Component\Console\Input\InputInterface;
9
10
class ApplyCommand extends \Vaimo\ComposerPatches\Composer\Commands\PatchCommand
11
{
12
    protected function configure()
13
    {
14
        parent::configure();
15
16
        $this->setName('patch:apply');
17
18
        $this->setDescription('Apply a patch or patches for certain package(s)');
19
20
        $definition = $this->getDefinition();
21
        $options = $definition->getOptions();
22
23
        unset($options['redo'], $options['undo']);
24
25
        $definition->setOptions($options);
26
    }
27
}
28