-
Notifications
You must be signed in to change notification settings - Fork 2
/
ecs.php
21 lines (15 loc) · 869 Bytes
/
ecs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->sets([__DIR__.'/tools/ecs/vendor/contao/easy-coding-standard/config/contao.php']);
$ecsConfig->ruleWithConfiguration(HeaderCommentFixer::class, [
'header' => "This file is part of SocialImagesBundle.\n\n(c) Codefog\n\n@license MIT"
]);
if (PHP_VERSION_ID < 80000) {
$ecsConfig->ruleWithConfiguration(\PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer::class, ['elements' => ['arrays'], 'after_heredoc' => true]);
$ecsConfig->skip([\PhpCsFixer\Fixer\PhpUnit\PhpUnitExpectationFixer::class]); // see https://github.com/symplify/symplify/issues/3130
}
// Adjust the configuration according to your needs.
};