DefaultPreset::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 16
nc 1
nop 0
1
<?php
2
3
namespace SugaredRim\PhpCsFixer;
4
5
class DefaultPreset
6
{
7
    public static function get()
8
    {
9
        $config = new \stdClass();
10
        $config->diff = true;
11
        $config->{'dry-run'} = true;
12
        $config->cache = true;
13
        $config->path = new \stdClass();
14
        $config->path->in = ['.'];
15
        $config->path->name = ['*.php', '*.phtml', '*.twig', '*.xml', '*.yml'];
16
        $config->path->exclude = [
17
            'build',
18
            'bower_components',
19
            'node_modules',
20
            'vendor',
21
        ];
22
        $config->path->ignoreDotFiles = true;
23
        $config->path->ignoreVCS = true;
24
25
        return $config;
26
    }
27
}
28