-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathecs.php
More file actions
32 lines (27 loc) · 945 Bytes
/
ecs.php
File metadata and controls
32 lines (27 loc) · 945 Bytes
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
<?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->ruleWithConfiguration(ConcatSpaceFixer::class, [
'spacing' => 'none',
]);
$ecsConfig->paths([
__DIR__.'/src',
__DIR__.'/tests',
]);
$ecsConfig->cacheDirectory(__DIR__.'/.ecs_cache');
};