11<?php
22
3- $ finder = PhpCsFixer \Finder::create ()
3+ use PhpCsFixer \Config ;
4+ use PhpCsFixer \Finder ;
5+
6+ $ finder = Finder::create ()
7+ ->name ('.php_cs ' )
48 ->exclude ('vendor ' )
59 ->in (__DIR__ )
610;
711
8- return PhpCsFixer \ Config::create ()
12+ return Config::create ()
913 ->setRules ([
10- '@PSR1 ' => true ,
11- '@PSR2 ' => true ,
1214 '@PhpCsFixer ' => true ,
1315 '@PhpCsFixer:risky ' => true ,
14- 'array_syntax ' => ['syntax ' => 'short ' ],
15- 'php_unit_test_class_requires_covers ' => false ,
16+ '@DoctrineAnnotation ' => true ,
17+ '@PHP70Migration:risky ' => true ,
18+ '@PHPUnit75Migration:risky ' => true ,
19+ 'backtick_to_shell_exec ' => true ,
20+ 'blank_line_before_statement ' => [
21+ 'statements ' => ['declare ' , 'return ' , 'case ' ],
22+ ],
23+ 'comment_to_phpdoc ' => false ,
24+ 'declare_equal_normalize ' => ['space ' => 'single ' ],
25+ 'doctrine_annotation_array_assignment ' => ['operator ' => '= ' ],
26+ 'doctrine_annotation_spaces ' => [
27+ 'after_array_assignments_equals ' => false ,
28+ 'before_array_assignments_equals ' => false
29+ ],
30+ 'final_static_access ' => true ,
31+ 'global_namespace_import ' => true ,
32+ 'linebreak_after_opening_tag ' => true ,
33+ 'mb_str_functions ' => true ,
1634 'native_function_invocation ' => false ,
35+ 'no_unset_on_property ' => false ,
36+ 'php_unit_test_case_static_method_calls ' => ['call_type ' => 'self ' ],
37+ 'phpdoc_to_comment ' => false ,
38+ 'self_static_accessor ' => true ,
1739 ])
1840 ->setFinder ($ finder )
1941 ;
0 commit comments