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

Application::getPackageVersion()   A

Complexity

Conditions 4
Paths 6

Size

Total Lines 20
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 12
CRAP Score 4.0466

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 13
c 2
b 1
f 0
dl 0
loc 20
ccs 12
cts 14
cp 0.8571
rs 9.8333
cc 4
nc 6
nop 0
crap 4.0466
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