-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.php-cs-fixer.php
36 lines (33 loc) · 1.05 KB
/
.php-cs-fixer.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
<?php
declare(strict_types=1);
/**
* This file is part of friendsofhyperf/components.
*
* @link https://github.com/friendsofhyperf/components
* @document https://github.com/friendsofhyperf/components/blob/main/README.md
* @contact [email protected]
*/
use Huangdijia\PhpCsFixer\Config;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
require __DIR__ . '/vendor/autoload.php';
return (new Config())
->setHeaderComment(
projectName: 'friendsofhyperf/components',
projectLink: 'https://github.com/friendsofhyperf/components',
projectDocument: 'https://github.com/friendsofhyperf/components/blob/main/README.md',
contacts: [
],
)
->setParallelConfig(ParallelConfigFactory::detect(filesPerProcess: 20))
->setFinder(
PhpCsFixer\Finder::create()
->exclude('bin')
->exclude('runtime')
->exclude('vendor')
->in(__DIR__)
->append([
__FILE__,
])
)
->setUsingCache(false);