DefaultConfigurationReader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 26
c 1
b 0
f 0
dl 0
loc 47
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Pluswerk\TypoScriptAutoFixer\Adapter\Configuration\Reader;
5
6
final class DefaultConfigurationReader extends AbstractConfigurationReader
7
{
8
    /**
9
     * @var array
10
     */
11
    private $config = [
12
        'sniffs' => [
13
            0 => [
14
                'class'      => 'Indentation',
15
                'parameters' => [
16
                    'useSpaces'        => true,
17
                    'indentPerLevel'   => 2,
18
                    'indentConditions' => true,
19
                ],
20
            ],
21
            1 => [
22
                'class' => 'RepeatingRValue'
23
            ],
24
            2 => [
25
                'class' => 'DeadCode',
26
            ],
27
            3 => [
28
                'class' => 'OperatorWhitespace',
29
            ],
30
            4 => [
31
                'class' => 'DuplicateAssignment',
32
            ],
33
            5 => [
34
                'class' => 'EmptySection',
35
            ],
36
            6 => [
37
                'class'      => 'NestingConsistency',
38
                'parameters' => [
39
                    'commonPathPrefixThreshold' => 1,
40
                ],
41
            ],
42
        ],
43
        'paths'        => [],
44
        'filePatterns' => [],
45
    ];
46
47
    /**
48
     * DefaultConfigurationReader constructor.
49
     */
50
    public function __construct()
51
    {
52
        parent::__construct($this->config);
53
    }
54
}
55