@@ -12,10 +12,14 @@ return PhpCsFixer\Config::create()
1212 ->setRiskyAllowed (true )
1313 ->setRules (
1414 [
15+ 'align_multiline_comment ' => true ,
16+ 'array_indentation ' => true ,
1517 'array_syntax ' => ['syntax ' => 'short ' ],
1618 'binary_operator_spaces ' => [
17- 'align_double_arrow ' => true ,
18- 'align_equals ' => true
19+ 'operators ' => [
20+ '= ' => 'align ' ,
21+ '=> ' => 'align ' ,
22+ ],
1923 ],
2024 'blank_line_after_namespace ' => true ,
2125 'blank_line_before_statement ' => [
@@ -41,7 +45,9 @@ return PhpCsFixer\Config::create()
4145 ],
4246 'braces ' => true ,
4347 'cast_spaces ' => true ,
44- 'class_attributes_separation ' => ['elements ' => ['method ' ]],
48+ 'class_attributes_separation ' => ['elements ' => ['const ' , 'method ' , 'property ' ]],
49+ 'combine_consecutive_issets ' => true ,
50+ 'combine_consecutive_unsets ' => true ,
4551 'compact_nullable_typehint ' => true ,
4652 'concat_space ' => ['spacing ' => 'one ' ],
4753 'declare_equal_normalize ' => ['space ' => 'none ' ],
@@ -52,19 +58,28 @@ return PhpCsFixer\Config::create()
5258 'function_declaration ' => true ,
5359 'header_comment ' => ['header ' => $ header , 'separate ' => 'none ' ],
5460 'indentation_type ' => true ,
61+ 'is_null ' => true ,
5562 'line_ending ' => true ,
5663 'list_syntax ' => ['syntax ' => 'short ' ],
64+ 'logical_operators ' => true ,
5765 'lowercase_cast ' => true ,
5866 'lowercase_constants ' => true ,
5967 'lowercase_keywords ' => true ,
68+ 'lowercase_static_reference ' => true ,
6069 'magic_constant_casing ' => true ,
6170 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
6271 'modernize_types_casting ' => true ,
72+ 'multiline_comment_opening_closing ' => true ,
73+ 'multiline_whitespace_before_semicolons ' => true ,
74+ 'native_constant_invocation ' => true ,
6375 'native_function_casing ' => true ,
6476 'native_function_invocation ' => true ,
77+ 'new_with_braces ' => false ,
6578 'no_alias_functions ' => true ,
79+ 'no_alternative_syntax ' => true ,
6680 'no_blank_lines_after_class_opening ' => true ,
6781 'no_blank_lines_after_phpdoc ' => true ,
82+ 'no_blank_lines_before_namespace ' => true ,
6883 'no_closing_tag ' => true ,
6984 'no_empty_comment ' => true ,
7085 'no_empty_phpdoc ' => true ,
@@ -74,13 +89,16 @@ return PhpCsFixer\Config::create()
7489 'no_leading_import_slash ' => true ,
7590 'no_leading_namespace_whitespace ' => true ,
7691 'no_mixed_echo_print ' => ['use ' => 'print ' ],
92+ 'no_multiline_whitespace_around_double_arrow ' => true ,
7793 'no_null_property_initialization ' => true ,
94+ 'no_php4_constructor ' => true ,
7895 'no_short_bool_cast ' => true ,
7996 'no_short_echo_tag ' => true ,
8097 'no_singleline_whitespace_before_semicolons ' => true ,
8198 'no_spaces_after_function_name ' => true ,
8299 'no_spaces_inside_parenthesis ' => true ,
83100 'no_superfluous_elseif ' => true ,
101+ 'no_superfluous_phpdoc_tags ' => true ,
84102 'no_trailing_comma_in_list_call ' => true ,
85103 'no_trailing_comma_in_singleline_array ' => true ,
86104 'no_trailing_whitespace ' => true ,
@@ -89,8 +107,10 @@ return PhpCsFixer\Config::create()
89107 'no_unneeded_curly_braces ' => true ,
90108 'no_unneeded_final_method ' => true ,
91109 'no_unreachable_default_argument_value ' => true ,
110+ 'no_unset_on_property ' => true ,
92111 'no_unused_imports ' => true ,
93112 'no_useless_else ' => true ,
113+ 'no_useless_return ' => true ,
94114 'no_whitespace_before_comma_in_array ' => true ,
95115 'no_whitespace_in_blank_line ' => true ,
96116 'non_printable_character ' => true ,
@@ -135,13 +155,17 @@ return PhpCsFixer\Config::create()
135155 'phpdoc_single_line_var_spacing ' => true ,
136156 'phpdoc_to_comment ' => true ,
137157 'phpdoc_trim ' => true ,
158+ 'phpdoc_trim_consecutive_blank_line_separation ' => true ,
138159 'phpdoc_types ' => true ,
139160 'phpdoc_types_order ' => true ,
140161 'phpdoc_var_without_name ' => true ,
141162 'pow_to_exponentiation ' => true ,
142163 'protected_to_private ' => true ,
164+ 'return_assignment ' => true ,
143165 'return_type_declaration ' => ['space_before ' => 'none ' ],
144166 'self_accessor ' => true ,
167+ 'semicolon_after_instruction ' => true ,
168+ 'set_type_to_cast ' => true ,
145169 'short_scalar_cast ' => true ,
146170 'simplified_null_return ' => true ,
147171 'single_blank_line_at_eof ' => true ,
@@ -150,6 +174,7 @@ return PhpCsFixer\Config::create()
150174 'single_quote ' => true ,
151175 'standardize_not_equals ' => true ,
152176 'ternary_to_null_coalescing ' => true ,
177+ 'trailing_comma_in_multiline_array ' => true ,
153178 'trim_array_spaces ' => true ,
154179 'unary_operator_spaces ' => true ,
155180 'visibility_required ' => true ,
@@ -161,5 +186,4 @@ return PhpCsFixer\Config::create()
161186 PhpCsFixer \Finder::create ()
162187 ->files ()
163188 ->in (__DIR__ . '/src ' )
164- ->name ('*.php ' )
165189 );
0 commit comments