11<?php
2- $ header = <<<EOF
3- This file is part of the overtrue/laravel-query-logger.
4-
5- (c) overtrue <i@overtrue.me>
6-
7- This source file is subject to the MIT license that is bundled
8- with this source code in the file LICENSE.
9- EOF ;
10-
112return PhpCsFixer \Config::create ()
12- ->setRiskyAllowed (true )
13- ->setRules (array (
14- '@Symfony ' => true ,
15- 'header_comment ' => array ('header ' => $ header ),
16- 'array_syntax ' => array ('syntax ' => 'short ' ),
17- 'ordered_imports ' => true ,
18- 'no_useless_else ' => true ,
19- 'no_useless_return ' => true ,
20- 'php_unit_construct ' => true ,
21- 'php_unit_strict ' => true ,
22- ))
3+ ->setRules ([
4+ '@PSR2 ' => true ,
5+ 'array_syntax ' => ['syntax ' => 'short ' ],
6+ 'blank_line_after_opening_tag ' => true ,
7+ 'braces ' => ['allow_single_line_closure ' => true ],
8+ 'compact_nullable_typehint ' => true ,
9+ 'concat_space ' => ['spacing ' => 'one ' ],
10+ 'declare_equal_normalize ' => ['space ' => 'none ' ],
11+ 'function_typehint_space ' => true ,
12+ 'new_with_braces ' => true ,
13+ 'method_argument_space ' => ['on_multiline ' => 'ensure_fully_multiline ' ],
14+ 'no_empty_statement ' => true ,
15+ 'no_leading_import_slash ' => true ,
16+ 'no_leading_namespace_whitespace ' => true ,
17+ 'no_whitespace_in_blank_line ' => true ,
18+ 'return_type_declaration ' => ['space_before ' => 'none ' ],
19+ 'single_trait_insert_per_statement ' => true ,
20+ ])
2321 ->setFinder (
2422 PhpCsFixer \Finder::create ()
2523 ->exclude ('vendor ' )
26- ->in (__DIR__ )
24+ ->in ([ __DIR__ . ' /src/ ' ] )
2725 )
28- ;
26+ ;
0 commit comments