Completed
Pull Request — master (#10)
by Tomáš
03:33
created

Application   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A runCommand() 0 8 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 __construct()
15
    {
16
17
    }
18
19
    public function runCommand(RunApplicationCommand $command)
20
    {
21
        // resolve configuration
22
        dump($command);
23
24
25
        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...
26
    }
27
}
28