summaryrefslogtreecommitdiff
path: root/www/wiki/vendor/elasticsearch/elasticsearch/.php_cs
blob: e01869ce0560c124320b23c5e9633a64bd5fcad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

function php_cs() {
    $finder = Symfony\CS\Finder\DefaultFinder::create()
        ->exclude('benchmarks')
        ->exclude('docs')
        ->exclude('util')
        ->exclude('.github')
        ->exclude('util')
        ->exclude('travis')
        ->exclude('util/cache')
        ->exclude('util/elasticsearch')
        ->exclude('vendor')
        ->in(__DIR__);

    return Symfony\CS\Config\Config::create()
        ->setUsingCache(true)
        ->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
        ->finder($finder);
}

return php_cs();