forked from synolia/SyliusMaintenancePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
25 lines (19 loc) · 772 Bytes
/
Copy pathecs.php
File metadata and controls
25 lines (19 loc) · 772 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use SlevomatCodingStandard\Sniffs\Classes\RequireMultiLineMethodSignatureSniff;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
dirname(__DIR__, 1) . '/src',
dirname(__DIR__, 1) . '/tests/PHPUnit',
]);
$ecsConfig->import(dirname(__DIR__) . '/vendor/sylius-labs/coding-standard/ecs.php');
$ecsConfig->rules([
OrderedClassElementsFixer::class,
BinaryOperatorSpacesFixer::class,
]);
/** @phpstan-ignore-next-line */
$ecsConfig->rule(RequireMultiLineMethodSignatureSniff::class);
};