-
Notifications
You must be signed in to change notification settings - Fork 11
/
.php-cs-fixer.dist.php
37 lines (35 loc) · 1.15 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
35
36
37
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->exclude('bin')
->exclude('stubs')
->notName('*DEPRECATED_*')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'combine_consecutive_issets' => true,
'concat_space' => ['spacing' => 'one'],
'function_to_constant' => true,
'implode_call' => true,
'is_null' => true,
'method_chaining_indentation' => true,
'modernize_types_casting' => true,
'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_separation' => false,
'phpdoc_to_comment' => false,
'phpdoc_summary' => false,
'psr_autoloading' => true,
'return_assignment' => true,
'yoda_style' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'single_line_throw' => false,
])
->setFinder($finder)
;