-
Notifications
You must be signed in to change notification settings - Fork 4
/
.php_cs.dist
32 lines (30 loc) · 1.01 KB
/
.php_cs.dist
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
<?php
$finder = PhpCsFixer\Finder::create()
->in(['src', 'tests'])
;
return PhpCsFixer\Config::create()
->setRules([
'@DoctrineAnnotation' => true,
'@PHP71Migration' => true,
'@PSR2' => true,
'@Symfony' => true,
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'],
'array_syntax' => ['syntax' => 'short'],
'heredoc_to_nowdoc' => true,
'is_null' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'no_null_property_initialization' => true,
'no_singleline_whitespace_before_semicolons' => false,
'no_superfluous_elseif' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'single_line_comment_style' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;