Test Failed
Pull Request — master (#6)
by
unknown
09:23
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1.0787

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 4
cts 7
cp 0.5714
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1.0787
1
<?php
2
3
namespace LF\EnvDiff\Console;
4
5
use LF\EnvDiff\Console\Command\ActualizeCommand;
6
use LF\EnvDiff\Console\Command\DiffCommand;
7
use Symfony\Component\Console\Application as BaseApplication;
8
use Symfony\Component\Console\Exception\LogicException;
9
10
class Application extends BaseApplication
11
{
12
    /**
13
     * {@inheritdoc}
14
     *
15
     * @throws LogicException
16
     */
17 1
    public function __construct()
18
    {
19 1
        parent::__construct('Env diff', '1.0.3');
20
21 1
        $this->setAutoExit(true);
22 1
        $this->add(new DiffCommand('diff'));
23
        $this->add(new ActualizeCommand('actualize'));
24
25
        $this->setDefaultCommand('actualize');
26
    }
27
}
28