DefaultPreset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 20 1
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