forked from m2mtech/flysystem-stream-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecs.php
33 lines (27 loc) · 981 Bytes
/
ecs.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
<?php
/*
* This file is part of the flysystem-stream-wrapper package.
*
* (c) 2021-2023 m2m server software gmbh <tech@m2m.at>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use PhpCsFixer\Fixer\Operator\ConcatSpaceFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->sets([
SetList::PSR_12,
SetList::CLEAN_CODE,
]);
// https://github.com/symplify/easy-coding-standard/blob/10.3.3/config/set/symfony.php
$ecsConfig->rule(ConcatSpaceFixer::class);
$ecsConfig->paths([
__DIR__.'/src',
__DIR__.'/tests',
]);
$ecsConfig->cacheDirectory(__DIR__.'/.ecs_cache');
$parameters = $ecsConfig->parameters();
$parameters->set(Option::PARALLEL, true);
};