-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
38 lines (35 loc) · 1.01 KB
/
.php-cs-fixer.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
35
36
37
38
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setRules([
'@PER-CS2.0' => true,
'@Symfony' => true,
'concat_space' => [
'spacing' => 'one',
],
'yoda_style' => [
'equal' => false,
'identical' => false,
],
'final_class' => true,
'declare_strict_types' => true,
'no_useless_else' => true,
'not_operator_with_successor_space' => true,
'not_operator_with_space' => false,
'multiline_comment_opening_closing' => true,
'native_function_invocation' => [
'include' => ['@compiler_optimized'],
],
'native_constant_invocation' => true,
])
->setFinder(
Finder::create()
->exclude('vendor')
->in(__DIR__)
)
->setUsingCache(false);