@@ -9,8 +9,7 @@ file that was distributed with this source code.
99EOF;
1010
1111$ finder = PhpCsFixer \Finder::create ()
12- ->in (__DIR__ )
13- ->exclude ('tests/_files ' );
12+ ->in ('src ' );
1413
1514return PhpCsFixer \Config::create ()
1615 ->setFinder ($ finder )
@@ -21,8 +20,8 @@ return PhpCsFixer\Config::create()
2120 'array_syntax ' => ['syntax ' => 'short ' ],
2221 'binary_operator_spaces ' => [
2322 'operators ' => [
24- '= ' => 'align ' ,
25- '=> ' => 'align ' ,
23+ '= ' => 'align_single_space_minimal ' ,
24+ '=> ' => 'align_single_space_minimal ' ,
2625 ],
2726 ],
2827 'blank_line_after_namespace ' => true ,
@@ -31,9 +30,13 @@ return PhpCsFixer\Config::create()
3130 'break ' ,
3231 'continue ' ,
3332 'declare ' ,
33+ 'default ' ,
34+ 'die ' ,
3435 'do ' ,
36+ 'exit ' ,
3537 'for ' ,
3638 'foreach ' ,
39+ 'goto ' ,
3740 'if ' ,
3841 'include ' ,
3942 'include_once ' ,
@@ -54,36 +57,44 @@ return PhpCsFixer\Config::create()
5457 'combine_consecutive_unsets ' => true ,
5558 'compact_nullable_typehint ' => true ,
5659 'concat_space ' => ['spacing ' => 'one ' ],
60+ 'constant_case ' => true ,
5761 'declare_equal_normalize ' => ['space ' => 'none ' ],
5862 'declare_strict_types ' => true ,
5963 'dir_constant ' => true ,
6064 'elseif ' => true ,
6165 'encoding ' => true ,
66+ 'explicit_indirect_variable ' => true ,
67+ 'explicit_string_variable ' => true ,
6268 'full_opening_tag ' => true ,
69+ 'fully_qualified_strict_types ' => true ,
6370 'function_declaration ' => true ,
6471 'global_namespace_import ' => [
6572 'import_classes ' => true ,
6673 'import_constants ' => true ,
6774 'import_functions ' => true ,
6875 ],
6976 'header_comment ' => ['header ' => $ header , 'separate ' => 'none ' ],
77+ 'heredoc_to_nowdoc ' => true ,
78+ 'increment_style ' => [
79+ 'style ' => PhpCsFixer \Fixer \Operator \IncrementStyleFixer::STYLE_POST ,
80+ ],
7081 'indentation_type ' => true ,
7182 'is_null ' => true ,
7283 'line_ending ' => true ,
7384 'list_syntax ' => ['syntax ' => 'short ' ],
7485 'logical_operators ' => true ,
75- 'lowercase_cast ' => true ,
76- 'lowercase_constants ' => true ,
7786 'lowercase_keywords ' => true ,
7887 'lowercase_static_reference ' => true ,
7988 'magic_constant_casing ' => true ,
89+ 'magic_method_casing ' => true ,
8090 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
8191 'modernize_types_casting ' => true ,
8292 'multiline_comment_opening_closing ' => true ,
8393 'multiline_whitespace_before_semicolons ' => true ,
8494 'native_constant_invocation ' => false ,
8595 'native_function_casing ' => false ,
8696 'native_function_invocation ' => false ,
97+ 'native_function_type_declaration_casing ' => true ,
8798 'new_with_braces ' => false ,
8899 'no_alias_functions ' => true ,
89100 'no_alternative_syntax ' => true ,
@@ -106,6 +117,7 @@ return PhpCsFixer\Config::create()
106117 'no_short_echo_tag ' => true ,
107118 'no_singleline_whitespace_before_semicolons ' => true ,
108119 'no_spaces_after_function_name ' => true ,
120+ 'no_spaces_around_offset ' => true ,
109121 'no_spaces_inside_parenthesis ' => true ,
110122 'no_superfluous_elseif ' => true ,
111123 'no_superfluous_phpdoc_tags ' => [
@@ -187,15 +199,18 @@ return PhpCsFixer\Config::create()
187199 'return_assignment ' => true ,
188200 'return_type_declaration ' => ['space_before ' => 'none ' ],
189201 'self_accessor ' => true ,
202+ 'self_static_accessor ' => true ,
190203 'semicolon_after_instruction ' => true ,
191204 'set_type_to_cast ' => true ,
192205 'short_scalar_cast ' => true ,
206+ 'simple_to_complex_string_variable ' => true ,
193207 'simplified_null_return ' => false ,
194208 'single_blank_line_at_eof ' => true ,
195209 'single_import_per_statement ' => true ,
196210 'single_line_after_imports ' => true ,
197211 'single_quote ' => true ,
198212 'standardize_not_equals ' => true ,
213+ 'strict_param ' => true ,
199214 'ternary_to_null_coalescing ' => true ,
200215 'trailing_comma_in_multiline_array ' => true ,
201216 'trim_array_spaces ' => true ,
0 commit comments