11<?php
22
33$ header = <<<EOF
4- This file is part of the overtrue/laravel-follow.
4+ This file is part of the overtrue/laravel-follow
55
6677
@@ -10,20 +10,27 @@ with this source code in the file LICENSE.
1010EOF ;
1111
1212return PhpCsFixer \Config::create ()
13- ->setRiskyAllowed (true )
14- ->setRules (array (
15- 'header_comment ' => array ('header ' => $ header ),
16- 'array_syntax ' => array ('syntax ' => 'short ' ),
17- 'ordered_class_elements ' => true ,
18- 'list_syntax ' => array ('syntax ' => 'long ' ),
19- 'ordered_imports ' => true ,
20- 'php_unit_strict ' => true ,
21- 'phpdoc_order ' => true ,
22- 'strict_comparison ' => true ,
23- 'strict_param ' => true ,
24- ))
13+ ->setRules ([
14+ '@PSR2 ' => true ,
15+ 'header_comment ' => ['header ' => $ header ],
16+ 'blank_line_after_opening_tag ' => true ,
17+ 'braces ' => ['allow_single_line_closure ' => true ],
18+ 'compact_nullable_typehint ' => true ,
19+ 'concat_space ' => ['spacing ' => 'one ' ],
20+ 'declare_equal_normalize ' => ['space ' => 'none ' ],
21+ 'function_typehint_space ' => true ,
22+ 'new_with_braces ' => true ,
23+ 'method_argument_space ' => ['on_multiline ' => 'ensure_fully_multiline ' ],
24+ 'no_empty_statement ' => true ,
25+ 'no_leading_import_slash ' => true ,
26+ 'no_leading_namespace_whitespace ' => true ,
27+ 'no_whitespace_in_blank_line ' => true ,
28+ 'return_type_declaration ' => ['space_before ' => 'none ' ],
29+ 'single_trait_insert_per_statement ' => true ,
30+ ])
2531 ->setFinder (
2632 PhpCsFixer \Finder::create ()
27- ->in (__DIR__ .'/src ' )
33+ ->exclude ('vendor ' )
34+ ->in ([__DIR__ .'/src/ ' ])
2835 )
29- ;
36+ ;
0 commit comments