-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
46 lines (44 loc) · 1.66 KB
/
.php_cs
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
39
40
41
42
43
44
45
46
<?php declare(strict_types = 1);
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHP71Migration' => true,
'phpdoc_summary' => false,
'yoda_style' => false,
'self_accessor' => false,
'combine_consecutive_unsets' => true,
'blank_line_after_opening_tag' => false,
'phpdoc_to_comment' => false,
'phpdoc_no_empty_return' => false,
'strict_param' => true,
'doctrine_annotation_indentation' => true,
'mb_str_functions' => true,
'native_function_invocation' => true,
'no_short_echo_tag' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'simplified_null_return' => false,
'strict_comparison' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'declare_equal_normalize' => ['space' => 'single'],
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'doctrine_annotation_braces' => ['syntax' => 'with_braces'],
'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'created', 'version', 'package', 'copyright', 'license', 'throws']],
])
->setFinder($finder)
;