Uninstall::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 8
rs 9.4285
c 1
b 1
f 0
nc 1
cc 1
eloc 5
nop 0
1
<?php
2
3
namespace uuf6429\ElderBrother\Console\Command;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use uuf6429\ElderBrother\Vcs\Manager;
8
9
class Uninstall extends CommandAbstract
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    protected function configure()
15
    {
16
        $this
17
            ->setName('uninstall')
18
            ->setDescription('Uninstalls VCS hooks.')
19
            ->setHelp('This command removes all VCS hooks, restoring original ones.')
20
        ;
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function execute(InputInterface $input, OutputInterface $output)
27
    {
28
        $manager = new Manager($this->logger);
29
        $manager->uninstall();
30
    }
31
}
32