.php_cs 543 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php

$finder = PhpCsFixer\Finder::create()
    ->files()
    ->name('*.php')
    ->ignoreDotFiles(true)
    ->ignoreVCS(true)
    ->in(__DIR__)
    ->exclude('campaigns')
    ->exclude('ci')
    ->exclude('db')
    ->exclude('locales')
    ->exclude('static')
    ->exclude('templates')
    ->exclude('tests')
    ->exclude('tex')
    ->exclude('tmp')
    ->exclude('vendor')
    ->exclude('_support')
;

return PhpCsFixer\Config::create()
    ->setRules([
        '@PSR2' => true
    ])
    ->setUsingCache(true)
    ->setFinder($finder)
;