1+ <?php
2+ $ finder = PhpCsFixer \Finder::create ()
3+ ->in (__DIR__ . '/src ' )
4+ ->in (__DIR__ . '/tests ' )
5+ ;
6+ return PhpCsFixer \Config::create ()
7+ ->setRiskyAllowed (true )
8+ ->setRules ([
9+ '@Symfony ' => true ,
10+ 'binary_operator_spaces ' => array (
11+ 'align_equals ' => false ,
12+ 'align_double_arrow ' => true ,
13+ ),
14+ '@Symfony:risky ' => true ,
15+ 'array_syntax ' => ['syntax ' => 'short ' ],
16+ 'declare_strict_types ' => true ,
17+ 'linebreak_after_opening_tag ' => true ,
18+ 'mb_str_functions ' => true ,
19+ 'no_php4_constructor ' => true ,
20+ 'no_unreachable_default_argument_value ' => true ,
21+ 'no_useless_else ' => true ,
22+ 'no_useless_return ' => true ,
23+ 'ordered_imports ' => true ,
24+ 'php_unit_strict ' => true ,
25+ 'phpdoc_order ' => true ,
26+ 'semicolon_after_instruction ' => true ,
27+ 'strict_comparison ' => true ,
28+ 'strict_param ' => true ,
29+ 'concat_space ' => ['spacing ' => 'one ' ],
30+ 'trailing_comma_in_multiline_array ' => false ,
31+ 'yoda_style ' => null
32+ ])
33+ ->setFinder ($ finder )
34+ ->setCacheFile (__DIR__ .'/.php_cs.cache ' );
0 commit comments