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\PHP\CodeSniffer;
4
5
class DefaultPreset
6
{
7
    public static function get()
8
    {
9
        $config = new \stdClass();
10
        $config->{'default_standard'} = ['PSR1', 'PSR2'];
11
12
        $config->files = new \stdClass();
13
        $config->files->in = ['.'];
14
        $config->files->name = ['*.php'];
15
        $config->files->files = true;
16
        $config->files->exclude = [
17
            'build',
18
            'bower_components',
19
            'node_modules',
20
            'vendor',
21
        ];
22
        $config->files->ignoreDotFiles = true;
23
        $config->files->ignoreVCS = true;
24
25
        return $config;
26
    }
27
}
28