File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ finder = PhpCsFixer \Finder::create ()
4+ ->in (__DIR__ )
5+ ->ignoreDotFiles (true )
6+ ->ignoreVCS (true )
7+ ->exclude (array ('build ' , 'vendor ' ))
8+ ->files ()
9+ ->name ('*.php ' )
10+ ;
11+ return PhpCsFixer \Config::create ()
12+ ->setUsingCache (true )
13+ ->setRiskyAllowed (true )
14+ ->setFinder ($ finder )
15+ ->setRules (array (
16+ '@Symfony ' => true ,
17+ '@Symfony:risky ' => true ,
18+ 'array_syntax ' => array ('syntax ' => 'short ' ),
19+ 'binary_operator_spaces ' => array (
20+ 'align_double_arrow ' => false ,
21+ ),
22+ 'combine_consecutive_unsets ' => true ,
23+ 'no_useless_else ' => true ,
24+ 'no_useless_return ' => true ,
25+ 'ordered_imports ' => true ,
26+ 'php_unit_strict ' => true ,
27+ 'phpdoc_summary ' => false ,
28+ 'strict_comparison ' => true ,
29+ ))
30+ ;
You can’t perform that action at this time.
0 commit comments