-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
105 lines (103 loc) · 3.01 KB
/
.php-cs-fixer.dist.php
File metadata and controls
105 lines (103 loc) · 3.01 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
declare(strict_types=1);
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'no_alias_functions' => [
'sets' => ['@all']
],
'no_alias_language_construct_call' => true,
'modernize_types_casting' => true,
'no_php4_constructor' => true,
'ordered_class_elements' => [
'order' => [
'use_trait',
'case',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'phpunit',
'method_public_static',
'method_protected_static',
'method_private_static',
'method_public',
'method_protected',
'method_private'
],
'sort_algorithm' => 'none',
],
'self_accessor' => true,
'multiline_comment_opening_closing' => true,
'no_useless_else' => true,
'simplified_if_return' => false,
'concat_space' => [
'spacing' => 'one'
],
'increment_style' => [
'style' => 'post'
],
'ordered_imports' => [
'sort_algorithm' => 'alpha'
],
'phpdoc_summary' => false,
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => [
'=' => 'align_single_space',
'+=' => 'align_single_space',
'-=' => 'align_single_space',
'=>' => 'align_single_space',
],
],
'blank_line_before_statement' => [
'statements' => [
'return',
'continue',
'exit',
'if',
'switch',
'throw',
'try',
]
],
'operator_linebreak' => [
'only_booleans' => true,
],
'phpdoc_order' => true,
'return_assignment' => false,
'phpdoc_to_comment' => [
'ignored_tags' => [
'psalm-suppress',
'var'
],
],
'single_line_throw' => false,
'types_spaces' => [
'space' => 'single',
],
'yoda_style' => [
'equal' => null,
'identical' => null,
'less_and_greater' => null
],
'native_function_invocation' => [
'include' => ['@compiler_optimized'],
'scope' => 'namespaced',
'strict' => true
],
])
->setRiskyAllowed(true)
->setFinder(
(new PhpCsFixer\Finder())
->in(__DIR__."/src")
)
->setCacheFile(".php-cs-fixer.cache");