-
Notifications
You must be signed in to change notification settings - Fork 19
/
.php-cs-fixer.php
49 lines (42 loc) · 1.19 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
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php declare(strict_types=1);
/*
* This file is part of the Fidry\Console package.
*
* (c) Théo FIDRY <theo.fidry@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Fidry\PhpCsFixerConfig\FidryConfig;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
->append([
'.github/fix-symfony-versions',
'set-composer-conflicts.php',
])
->exclude([
'dist',
'tests/Integration/var',
]);
$config = new FidryConfig(
// The header comment used
<<<'EOF'
This file is part of the Webmozarts Console Parallelization package.
(c) Webmozarts GmbH <office@webmozarts.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF,
// The min PHP version supported (best to align with your composer.json)
81_000,
);
$config->setCacheFile(__DIR__.'/dist/.php-cs-fixer.cache');
$config->setRules(
array_merge(
$config->getRules(),
[
'mb_str_functions' => false,
],
),
);
return $config->setFinder($finder);