Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
/**
3
 * For licensing information, please see the LICENSE file accompanied with this file.
4
 *
5
 * @author Gerard van Helden <[email protected]>
6
 * @copyright 2012 Gerard van Helden <http://melp.nl>
7
 */
8
9
namespace Zicht\Tool\Packager;
10
11
use Symfony\Component\Console\Application as BaseApplication;
12
13
/**
14
 * Z Packager application
15
 */
16
class Application extends BaseApplication
17
{
18
    /**
19
     * @{inheritDoc}
20
     */
21
    public function __construct($name = 'Zicht Tool packager', $version = 'development')
22
    {
23
        parent::__construct($name, $version);
24
25
        throw new \RuntimeException("Sorry, the packager is currently unsupported");
26
27
        $this->add(new Cmd\BuildCommand());
0 ignored issues
show
Unused Code introduced by
$this->add(new \Zicht\To...er\Cmd\BuildCommand()); does not seem to be reachable.

This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.

Unreachable code is most often the result of return, die or exit statements that have been added for debug purposes.

function fx() {
    try {
        doSomething();
        return true;
    }
    catch (\Exception $e) {
        return false;
    }

    return false;
}

In the above example, the last return false will never be executed, because a return statement has already been met in every possible execution path.

Loading history...
28
    }
29
}
30