@@ -8,92 +8,115 @@ return \PhpCsFixer\Config::create()
8
8
->setRules ([
9
9
'@PSR2 ' => true ,
10
10
11
- 'array_syntax ' => [
12
- 'syntax ' => 'short '
13
- ],
14
- 'binary_operator_spaces ' => [
15
- 'align_double_arrow ' => null ,
16
- 'align_equals ' => false ,
17
- ],
11
+ 'align_multiline_comment ' => true ,
12
+ 'array_indentation ' => true ,
13
+ 'array_syntax ' => ['syntax ' => 'short ' ],
14
+ 'backtick_to_shell_exec ' => true ,
15
+ 'binary_operator_spaces ' => true ,
18
16
'blank_line_after_opening_tag ' => true ,
19
17
'cast_spaces ' => true ,
18
+ 'class_attributes_separation ' => ['elements ' => ['method ' ]],
19
+ 'combine_consecutive_issets ' => true ,
20
20
'combine_consecutive_unsets ' => true ,
21
- 'concat_space ' => [
22
- 'spacing ' => 'one '
23
- ],
21
+ 'concat_space ' => ['spacing ' => 'one ' ],
24
22
'declare_equal_normalize ' => true ,
25
23
'dir_constant ' => true ,
26
24
'ereg_to_preg ' => true ,
25
+ 'fully_qualified_strict_types ' => true ,
27
26
'function_to_constant ' => true ,
28
27
'function_typehint_space ' => true ,
29
- 'hash_to_slash_comment ' => true ,
30
28
'heredoc_to_nowdoc ' => true ,
31
29
'include ' => true ,
32
30
'is_null ' => true ,
31
+ 'list_syntax ' => ['syntax ' => 'short ' ],
32
+ 'logical_operators ' => true ,
33
33
'lowercase_cast ' => true ,
34
+ 'lowercase_static_reference ' => true ,
34
35
'magic_constant_casing ' => true ,
35
- 'method_separation ' => true ,
36
36
'modernize_types_casting ' => true ,
37
+ 'multiline_comment_opening_closing ' => true ,
38
+ 'multiline_whitespace_before_semicolons ' => true ,
39
+ 'native_constant_invocation ' => true ,
37
40
'native_function_casing ' => true ,
41
+ 'native_function_invocation ' => ['include ' => ['@compiler_optimized ' ]],
38
42
'new_with_braces ' => true ,
39
43
'no_alias_functions ' => true ,
44
+ 'no_binary_string ' => true ,
40
45
'no_blank_lines_after_class_opening ' => true ,
41
46
'no_blank_lines_after_phpdoc ' => true ,
42
47
'no_empty_comment ' => true ,
43
48
'no_empty_phpdoc ' => true ,
44
49
'no_empty_statement ' => true ,
45
- 'no_extra_consecutive_blank_lines ' => true ,
50
+ 'no_extra_blank_lines ' => true ,
51
+ 'no_homoglyph_names ' => true ,
46
52
'no_leading_import_slash ' => true ,
47
53
'no_leading_namespace_whitespace ' => true ,
48
54
'no_mixed_echo_print ' => true ,
49
55
'no_multiline_whitespace_around_double_arrow ' => true ,
50
- 'no_multiline_whitespace_before_semicolons ' => true ,
51
56
'no_php4_constructor ' => true ,
52
57
'no_short_bool_cast ' => true ,
53
58
'no_singleline_whitespace_before_semicolons ' => true ,
54
59
'no_spaces_around_offset ' => true ,
55
60
'no_trailing_comma_in_list_call ' => true ,
56
61
'no_trailing_comma_in_singleline_array ' => true ,
57
62
'no_unneeded_control_parentheses ' => true ,
63
+ 'no_unneeded_curly_braces ' => true ,
64
+ 'no_unneeded_final_method ' => true ,
65
+ 'no_unreachable_default_argument_value ' => true ,
58
66
'no_unused_imports ' => true ,
59
67
'no_useless_return ' => true ,
60
68
'no_whitespace_before_comma_in_array ' => true ,
61
69
'no_whitespace_in_blank_line ' => true ,
62
70
'non_printable_character ' => true ,
63
71
'normalize_index_brace ' => true ,
64
72
'object_operator_without_whitespace ' => true ,
65
- 'ordered_class_elements ' => [
66
- 'order ' => ['use_trait ' , 'constant ' , 'property ' , 'construct ' , 'method ' ],
67
- ],
73
+ 'ordered_class_elements ' => ['order ' => ['use_trait ' , 'constant ' , 'property ' , 'construct ' , 'method ' ]],
68
74
'ordered_imports ' => true ,
69
75
'php_unit_construct ' => true ,
70
- 'php_unit_dedicate_assert ' => true ,
76
+ 'php_unit_dedicate_assert ' => ['target ' => 'newest ' ],
77
+ 'php_unit_expectation ' => true ,
78
+ 'php_unit_mock ' => true ,
79
+ 'php_unit_namespaced ' => true ,
80
+ 'php_unit_no_expectation_annotation ' => true ,
81
+ 'php_unit_set_up_tear_down_visibility ' => true ,
71
82
'php_unit_strict ' => true ,
83
+ 'php_unit_test_case_static_method_calls ' => ['call_type ' => 'this ' ],
72
84
'phpdoc_add_missing_param_annotation ' => true ,
85
+ 'phpdoc_align ' => ['align ' => 'left ' ],
73
86
'phpdoc_annotation_without_dot ' => true ,
74
87
'phpdoc_indent ' => true ,
75
88
'phpdoc_inline_tag ' => true ,
76
89
'phpdoc_no_access ' => true ,
77
90
'phpdoc_no_alias_tag ' => true ,
78
91
'phpdoc_no_package ' => true ,
92
+ 'phpdoc_no_useless_inheritdoc ' => true ,
93
+ 'phpdoc_return_self_reference ' => true ,
79
94
'phpdoc_scalar ' => true ,
80
95
'phpdoc_single_line_var_spacing ' => true ,
81
96
'phpdoc_summary ' => true ,
97
+ 'phpdoc_to_comment ' => true ,
82
98
'phpdoc_trim ' => true ,
99
+ 'phpdoc_trim_consecutive_blank_line_separation ' => true ,
83
100
'phpdoc_types ' => true ,
84
101
'phpdoc_var_without_name ' => true ,
85
102
'pow_to_exponentiation ' => true ,
86
103
'psr4 ' => true ,
87
104
'return_type_declaration ' => true ,
88
105
'self_accessor ' => true ,
106
+ 'semicolon_after_instruction ' => true ,
107
+ 'set_type_to_cast ' => true ,
89
108
'short_scalar_cast ' => true ,
109
+ 'simplified_null_return ' => true ,
90
110
'single_blank_line_before_namespace ' => true ,
111
+ 'single_line_comment_style ' => true ,
91
112
'single_quote ' => true ,
92
113
'space_after_semicolon ' => true ,
114
+ 'standardize_increment ' => true ,
93
115
'standardize_not_equals ' => true ,
94
116
'strict_comparison ' => true ,
95
117
'strict_param ' => true ,
96
118
'ternary_operator_spaces ' => true ,
119
+ 'ternary_to_null_coalescing ' => true ,
97
120
'trailing_comma_in_multiline_array ' => true ,
98
121
'trim_array_spaces ' => true ,
99
122
'whitespace_after_comma_in_array ' => true ,
0 commit comments