.php_cs.dist 672 Bytes
Newer Older
Fabien Potencier's avatar
Fabien Potencier committed
1 2 3 4 5 6 7 8
<?php

return PhpCsFixer\Config::create()
    ->setRules(array(
        '@Symfony' => true,
        '@Symfony:risky' => true,
        '@PHPUnit48Migration:risky' => true,
        'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
9
        'array_syntax' => array('syntax' => 'short'),
Fabien Potencier's avatar
Fabien Potencier committed
10 11 12 13 14 15 16 17 18 19
        'protected_to_private' => false,
    ))
    ->setRiskyAllowed(true)
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->in(__DIR__.'/src/')
            ->in(__DIR__.'/tests/')
            ->name('*.php')
    )
;