Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace SugaredRim\PhpCsFixer\Console;
4
5
use Symfony\Component\Console\Application as BaseApplication;
6
use PhpCsFixer\Console\Command\ReadmeCommand;
7
use SugaredRim\PhpCsFixer\Console\Command\FixCommand;
8
9
class Application extends BaseApplication
10
{
11
    public function __construct()
12
    {
13
        error_reporting(-1);
14
15
        parent::__construct('Sugared PHP CS Fixer');
16
17
        $this->add(new FixCommand());
18
        $this->add(new ReadmeCommand());
19
20
        $this->setDefaultCommand(FixCommand::COMMAND_NAME);
21
    }
22
}
23