@@ -8,22 +8,30 @@ return \PhpCsFixer\Config::create()
8
8
->setRules ([
9
9
'@PSR2 ' => true ,
10
10
11
- 'array_syntax ' => ['syntax ' => 'short ' ],
11
+ 'array_syntax ' => [
12
+ 'syntax ' => 'short '
13
+ ],
12
14
'binary_operator_spaces ' => [
13
- 'align_equals ' => false ,
14
15
'align_double_arrow ' => null ,
16
+ 'align_equals ' => false ,
15
17
],
16
18
'blank_line_after_opening_tag ' => true ,
17
19
'cast_spaces ' => true ,
18
- 'concat_space ' => ['spacing ' => 'one ' ],
20
+ 'combine_consecutive_unsets ' => true ,
21
+ 'concat_space ' => [
22
+ 'spacing ' => 'one '
23
+ ],
19
24
'declare_equal_normalize ' => true ,
20
25
'dir_constant ' => true ,
21
26
'ereg_to_preg ' => true ,
27
+ 'function_to_constant ' => true ,
22
28
'function_typehint_space ' => true ,
23
29
'hash_to_slash_comment ' => true ,
24
30
'heredoc_to_nowdoc ' => true ,
25
31
'include ' => true ,
32
+ 'is_null ' => true ,
26
33
'lowercase_cast ' => true ,
34
+ 'magic_constant_casing ' => true ,
27
35
'method_separation ' => true ,
28
36
'modernize_types_casting ' => true ,
29
37
'native_function_casing ' => true ,
@@ -39,6 +47,7 @@ return \PhpCsFixer\Config::create()
39
47
'no_leading_namespace_whitespace ' => true ,
40
48
'no_mixed_echo_print ' => true ,
41
49
'no_multiline_whitespace_around_double_arrow ' => true ,
50
+ 'no_multiline_whitespace_before_semicolons ' => true ,
42
51
'no_php4_constructor ' => true ,
43
52
'no_short_bool_cast ' => true ,
44
53
'no_singleline_whitespace_before_semicolons ' => true ,
@@ -50,8 +59,12 @@ return \PhpCsFixer\Config::create()
50
59
'no_useless_return ' => true ,
51
60
'no_whitespace_before_comma_in_array ' => true ,
52
61
'no_whitespace_in_blank_line ' => true ,
62
+ 'non_printable_character ' => true ,
53
63
'normalize_index_brace ' => true ,
54
64
'object_operator_without_whitespace ' => true ,
65
+ 'ordered_class_elements ' => [
66
+ 'order ' => ['use_trait ' , 'constant ' , 'property ' , 'construct ' , 'method ' ],
67
+ ],
55
68
'ordered_imports ' => true ,
56
69
'php_unit_construct ' => true ,
57
70
'php_unit_dedicate_assert ' => true ,
0 commit comments