@@ -5,12 +5,20 @@ return PhpCsFixer\Config::create()
55 ->setRules ([
66 '@Symfony ' => true ,
77 '@Symfony:risky ' => true ,
8+ '@PhpCsFixer ' => true ,
9+ '@PSR1 ' => true ,
10+ '@PSR2 ' => true ,
11+ '@PSR12 ' => true ,
12+ '@PSR12:risky ' => true ,
813 'array_syntax ' => ['syntax ' => 'short ' ],
914 'combine_consecutive_unsets ' => true ,
1015 'concat_space ' => [ 'spacing ' => 'one ' ],
16+ 'explicit_string_variable ' => false ,
17+ 'fopen_flags ' => ['b_mode ' => true ],
1118 'heredoc_to_nowdoc ' => true ,
1219 'increment_style ' => false ,
13- 'list_syntax ' => ['syntax ' => 'long ' ],
20+ 'list_syntax ' => ['syntax ' => 'short ' ],
21+ 'multiline_whitespace_before_semicolons ' => false ,
1422 'no_extra_consecutive_blank_lines ' => ['break ' , 'continue ' , 'extra ' , 'return ' , 'throw ' , 'use ' , 'parenthesis_brace_block ' , 'square_brace_block ' , 'curly_brace_block ' ],
1523 'no_short_echo_tag ' => true ,
1624 'no_unreachable_default_argument_value ' => true ,
@@ -23,6 +31,7 @@ return PhpCsFixer\Config::create()
2331 'phpdoc_add_missing_param_annotation ' => true ,
2432 'phpdoc_no_alias_tag ' => false ,
2533 'phpdoc_order ' => true ,
34+ 'phpdoc_types_order ' => ['sort_algorithm ' => 'alpha ' , 'null_adjustment ' => 'always_last ' ],
2635 'semicolon_after_instruction ' => true ,
2736 'single_line_throw ' => false ,
2837 'strict_comparison ' => true ,
@@ -31,6 +40,7 @@ return PhpCsFixer\Config::create()
3140 ])
3241 ->setFinder (
3342 PhpCsFixer \Finder::create ()
43+ ->exclude ('ext ' )
3444 ->in (__DIR__ )
3545 )
3646;
0 commit comments