-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
40 lines (35 loc) · 1.01 KB
/
.php-cs-fixer.dist.php
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
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
* This file is part of CFONB Reader.
* Copyright (c) 2023 - present SILARHI - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Developed by SILARHI <[email protected]>
*/
$header = <<<'EOF'
This file is part of CFONB Reader.
Copyright (c) 2023 - present SILARHI - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
Developed by SILARHI <[email protected]>
EOF;
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/config',
__DIR__.'/src',
])
->append([
__FILE__,
__DIR__.'/rector.php',
])
;
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@Symfony' => true,
'global_namespace_import' => ['import_classes' => true],
'header_comment' => ['header' => $header],
])
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache');