ApplyCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 14 1
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
class ApplyCommand extends \Vaimo\ComposerPatches\Composer\Commands\PatchCommand
9
{
10
    protected function configure()
11
    {
12
        parent::configure();
13
14
        $this->setName('patch:apply');
15
16
        $this->setDescription('Apply a patch or patches for certain package(s)');
17
18
        $definition = $this->getDefinition();
19
        $options = $definition->getOptions();
20
21
        unset($options['redo'], $options['undo']);
22
23
        $definition->setOptions($options);
24
    }
25
}
26