summaryrefslogtreecommitdiff
path: root/.php-cs-fixer.dist.php
blob: 931a884b33762397ea3ffb50ac0d0404927ad7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

return (new Config())
    ->setParallelConfig(ParallelConfigFactory::detect())
    ->setRiskyAllowed(false)
    ->setRules([
        '@auto' => true,
        '@PSR12' => true,
        'new_with_parentheses' => [
            'named_class' => false,
        ],
    ])
    ->setFinder((new Finder())->in(__DIR__));