zhaojs
2023-07-31 8dcfae4fff98fbbb19ff46bd9750f25bc56801a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
$header = <<<EOF
This file is part of the EasyWeChatComposer.
 
(c) 张铭阳 <mingyoungcheung@gmail.com>
 
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
 
return PhpCsFixer\Config::create()
    ->setRiskyAllowed(true)
    ->setRules([
        '@Symfony' => true,
        'header_comment' => ['header' => $header],
        'declare_strict_types' => true,
        'ordered_imports' => true,
        'strict_comparison' => true,
        'no_empty_comment' => false,
        'yoda_style' => false,
    ])
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->exclude('vendor')
            ->notPath('src/Laravel/config.php', 'src/Laravel/routes.php')
            ->in(__DIR__)
    )
;