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

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 57.14%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 18
ccs 4
cts 7
cp 0.5714
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
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