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

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
eloc 7
c 4
b 1
f 0
dl 0
loc 12
ccs 7
cts 7
cp 1
rs 10

1 Method

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