Completed
Push — master ( 0ab984...c72dd5 )
by Théo
02:46
created

Application::getLongVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the humbug/php-scoper package.
7
 *
8
 * Copyright (c) 2017 Théo FIDRY <[email protected]>,
9
 *                    Pádraic Brady <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace Humbug\PhpScoper\Console;
16
17
use Symfony\Component\Console\Application as SymfonyApplication;
18
19
final class Application extends SymfonyApplication
20
{
21
    /** @private */
22
    const LOGO = <<<'ASCII'
23
24
    ____  __  ______     _____                           
25
   / __ \/ / / / __ \   / ___/_________  ____  ___  _____
26
  / /_/ / /_/ / /_/ /   \__ \/ ___/ __ \/ __ \/ _ \/ ___/
27
 / ____/ __  / ____/   ___/ / /__/ /_/ / /_/ /  __/ /    
28
/_/   /_/ /_/_/       /____/\___/\____/ .___/\___/_/     
29
                                     /_/
30
31
32
ASCII;
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function getLongVersion()
38
    {
39
        return sprintf(
40
            '<info>%s</info> version <comment>%s</comment>',
41
            $this->getName(),
42
            $this->getVersion()
43
        );
44
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49
    public function getHelp()
50
    {
51
        return self::LOGO.parent::getHelp();
52
    }
53
}
54