77 ])
88;
99
10- return PhpCsFixer \Config:: create ( )
10+ return ( new PhpCsFixer \Config () )
1111 ->setRules ([
1212 '@PSR2 ' => true ,
1313 'align_multiline_comment ' => true ,
1616 'syntax ' => 'short ' ,
1717 ],
1818 'binary_operator_spaces ' => [
19- 'align_double_arrow ' => false ,
20- 'align_equals ' => false ,
19+ 'operators ' => [
20+ '=> ' => null ,
21+ '= ' => null ,
22+ ],
2123 ],
2224 'blank_line_after_namespace ' => true ,
2325 'blank_line_after_opening_tag ' => true ,
3739 'declare_equal_normalize ' => true ,
3840 'function_typehint_space ' => true ,
3941 'include ' => true ,
42+ 'increment_style ' => [
43+ 'style ' => 'pre ' ,
44+ ],
4045 'lowercase_cast ' => true ,
4146 'method_chaining_indentation ' => true ,
42- 'method_separation ' => true ,
4347 'multiline_comment_opening_closing ' => true ,
4448 'native_function_casing ' => true ,
4549 'new_with_braces ' => true ,
4650 'no_blank_lines_after_phpdoc ' => true ,
4751 'no_empty_comment ' => true ,
4852 'no_empty_phpdoc ' => true ,
4953 'no_empty_statement ' => true ,
50- 'no_extra_consecutive_blank_lines ' => [
54+ 'no_extra_blank_lines ' => [
5155 'tokens ' => [
5256 'curly_brace_block ' ,
5357 'extra ' ,
6670 'no_short_bool_cast ' => true ,
6771 'no_singleline_whitespace_before_semicolons ' => true ,
6872 'no_spaces_around_offset ' => true ,
69- 'no_superfluous_phpdoc_tags ' => true ,
7073 'no_trailing_comma_in_list_call ' => true ,
7174 'no_trailing_comma_in_singleline_array ' => true ,
7275 'no_unneeded_control_parentheses ' => true ,
73- 'no_unneeded_curly_braces ' => true ,
74- 'no_unneeded_final_method ' => true ,
7576 'no_unused_imports ' => true ,
7677 'no_whitespace_before_comma_in_array ' => true ,
7778 'no_whitespace_in_blank_line ' => true ,
8283 'phpdoc_align ' => false ,
8384 'phpdoc_annotation_without_dot ' => true ,
8485 'phpdoc_indent ' => true ,
85- 'phpdoc_line_span ' => [
86- 'property ' => 'single ' ,
87- ],
8886 'phpdoc_no_package ' => true ,
8987 'phpdoc_no_useless_inheritdoc ' => true ,
9088 'phpdoc_order ' => true ,
9593 'phpdoc_trim ' => true ,
9694 'phpdoc_types ' => true ,
9795 'phpdoc_var_without_name ' => true ,
98- 'pre_increment ' => true ,
9996 'return_type_declaration ' => true ,
10097 'short_scalar_cast ' => true ,
10198 'single_blank_line_before_namespace ' => true ,
105102 'standardize_not_equals ' => true ,
106103 'ternary_operator_spaces ' => true ,
107104 'ternary_to_null_coalescing ' => true ,
108- 'trailing_comma_in_multiline_array ' => true ,
105+ 'trailing_comma_in_multiline ' => [
106+ 'elements ' => ['arrays ' ],
107+ ],
109108 'trim_array_spaces ' => true ,
110109 'unary_operator_spaces ' => true ,
111110 'whitespace_after_comma_in_array ' => true ,
112- // risky
113- 'dir_constant ' => true ,
114- 'function_to_constant ' => true ,
115- 'global_namespace_import ' => [
116- 'import_classes ' => true ,
117- 'import_constants ' => true ,
118- 'import_functions ' => true ,
119- ],
120- 'is_null ' => true ,
121- 'logical_operators ' => true ,
122- 'modernize_types_casting ' => true ,
123- 'no_alias_functions ' => true ,
124- 'no_php4_constructor ' => true ,
125- 'non_printable_character ' => true ,
126- 'php_unit_construct ' => true ,
127- 'php_unit_dedicate_assert ' => true ,
128- 'php_unit_mock ' => true ,
129- 'php_unit_namespaced ' => true ,
130- 'php_unit_set_up_tear_down_visibility ' => true ,
131- 'pow_to_exponentiation ' => true ,
132- 'psr0 ' => true ,
133- 'psr4 ' => true ,
134- 'random_api_migration ' => true ,
135- 'self_accessor ' => true ,
136- 'void_return ' => true ,
137111 ])
138112 ->setFinder ($ finder )
139113 ;
0 commit comments