Completed
Pull Request — master (#146)
by Jérôme
08:41
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ComposerRequireChecker\Cli;
4
5
use PackageVersions\Versions;
6
use Symfony\Component\Console\Application as AbstractApplication;
7
8
class Application extends AbstractApplication
9
{
10 5
    public function __construct()
11
    {
12 5
        parent::__construct(
13 5
            'ComposerRequireChecker',
14 5
            Versions::getVersion('maglnet/composer-require-checker')
15
        );
16
17 5
        $check = new CheckCommand();
18 5
        $this->add($check);
19 5
        $this->setDefaultCommand($check->getName());
20 5
    }
21
}
22