.php_cs 806 Bytes
Newer Older
Peter Tönnies's avatar
Peter Tönnies committed
1 2 3 4 5 6 7 8 9 10 11 12
<?php

$finder = PhpCsFixer\Finder::create()
    ->exclude('docker')
    ->exclude('lang')
    ->exclude('fonts')
    ->exclude('chat')
    ->exclude('images')
    ->exclude('light')
    ->exclude('scripts')
    ->exclude('js')
    ->exclude('vendor')
Nick Sellen's avatar
Nick Sellen committed
13
    ->notPath('tmp')
Peter Tönnies's avatar
Peter Tönnies committed
14
    ->notPath('lib/font')
15
    ->notPath('tests/_support/_generated')
16
    ->notPath('src/Lib/Flourish')
Matthias Larisch's avatar
Matthias Larisch committed
17
    ->notPath('cache')
Matthias Larisch's avatar
Matthias Larisch committed
18
    ->notPath('client')
Peter Tönnies's avatar
Peter Tönnies committed
19 20 21 22 23 24 25 26 27
    ->in(__DIR__)
;

return PhpCsFixer\Config::create()
    ->setRules([
        '@Symfony' => true,
        'concat_space' => ['spacing' => 'one'],
        'cast_spaces' => ['space' => 'none'],
        'phpdoc_align' => ['tags' => []],
28 29
        'trailing_comma_in_multiline_array' => false,
        'yoda_style' => null
Peter Tönnies's avatar
Peter Tönnies committed
30 31 32 33 34 35 36 37 38
    ])
    ->setIndent("\t")
    ->setFinder($finder)
;

?>