DefaultPreset::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 15

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 15
nc 1
nop 0
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