-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
.php-cs-fixer.dist.php
34 lines (29 loc) · 1.03 KB
/
.php-cs-fixer.dist.php
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
29
30
31
32
33
34
<?php
$header = <<<'EOF'
This file is part of the Blackfire Player package.
(c) Fabien Potencier <fabien@blackfire.io>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/Player')
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'no_useless_return' => true,
'no_useless_else' => true,
'no_superfluous_elseif' => true,
'explicit_indirect_variable' => true,
'return_assignment' => true,
'fopen_flags' => false,
'strict_param' => true,
'phpdoc_separation' => ['groups' => [['ORM\\*'], ['Assert\\*', 'Assert'], ['SymfonySerializer\\*']]],
'nullable_type_declaration' => ['syntax' => 'union'],
'header_comment' => ['header' => $header],
])
;