Completed
Push — master ( f0b146...8f0e1e )
by Théo
02:31
created

Application::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2.0116

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 6
cts 7
cp 0.8571
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 8
nc 2
nop 0
crap 2.0116
1
<?php
2
3
/*
4
 * This file is part of the webmozart/php-scoper package.
5
 *
6
 * (c) Bernhard Schussek <[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 Webmozart\PhpScoper\Console;
13
14
use Silly\Application as SillyApplication;
15
16
class Application extends SillyApplication
17
{
18
    /**
19
     * The version of the PHP-Scoper.
20
     */
21
    const VERSION = '@package_version@';
22
23 6
    public function __construct()
24
    {
25 6
        if (self::VERSION == '@package_version@') {
26 6
            $version = '1.0-dev';
27
        } else {
28
            $version = self::VERSION;
29
        }
30
31 6
        parent::__construct(
32 6
            'php-scoper',
33
            $version
34
        );
35 6
    }
36
}
37