Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 31
c 0
b 0
f 0
ccs 0
cts 5
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHelp() 0 4 1
A run() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Geotools library.
5
 *
6
 * (c) Antoine Corcy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\Geotools\CLI;
13
14
use League\Geotools\CLI\Output\ConsoleOutput;
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
/**
19
 * @author Antoine Corcy <[email protected]>
20
 */
21
class Application extends \Symfony\Component\Console\Application
22
{
23
    /**
24
     * @var string
25
     */
26
    private $logo = '
27
      ________              __                .__
28
     /  _____/  ____  _____/  |_  ____   ____ |  |   ______
29
    /   \  ____/ __ \/  _ \   __\/  _ \ /  _ \|  |  /  ___/
30
    \    \_\  \  ___(  <_> )  | (  <_> |  <_> )  |__\___ \
31
     \______  /\___  >____/|__|  \____/ \____/|____/____  >
32
            \/     \/                                   \/
33
34
';
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getHelp()
40
    {
41
        return $this->logo . parent::getHelp();
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function run(InputInterface $input = null, OutputInterface $output = null)
48
    {
49
        parent::run($input, new ConsoleOutput);
50
    }
51
}
52