Completed
Pull Request — master (#10)
by Tomáš
07:13
created

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A runCommand() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of Symplify
5
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
6
 */
7
8
namespace Symplify\MultiCodingStandard\PhpCsFixer\Application;
9
10
use Symplify\MultiCodingStandard\PhpCsFixer\Application\Command\RunApplicationCommand;
11
12
final class Application
13
{
14
    public function runCommand(RunApplicationCommand $command)
15
    {
16
        // resolve configuration
17
        dump($command);
18
        die;
0 ignored issues
show
Coding Style Compatibility introduced by
The method runCommand() contains an exit expression.

An exit expression should only be used in rare cases. For example, if you write a short command line script.

In most cases however, using an exit expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.

Loading history...
19
    }
20
}
21