Application   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 40
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultCommands() 0 6 1
A getDefinition() 0 6 1
A __construct() 0 3 1
A getCommandName() 0 3 1
1
<?php
2
3
namespace cwreden\php7ccAnalyser\Console;
4
5
use cwreden\php7ccAnalyser\Console\PHP7CCAnalyseCommand;
6
use Symfony\Component\Console\Input\InputInterface;
7
8
class Application extends \Symfony\Component\Console\Application
9
{
10
    const VERSION = '0.1.0';
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function __construct()
16
    {
17
        parent::__construct('PHP 7 Compatibility Check Analyser', static::VERSION);
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getDefinition()
24
    {
25
        $inputDefinition = parent::getDefinition();
26
        $inputDefinition->setArguments();
27
28
        return $inputDefinition;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function getCommandName(InputInterface $input)
35
    {
36
        return PHP7CCAnalyseCommand::COMMAND_NAME;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    protected function getDefaultCommands()
43
    {
44
        $defaultCommands = parent::getDefaultCommands();
45
        $defaultCommands[] = new PHP7CCAnalyseCommand();
46
47
        return $defaultCommands;
48
    }
49
}