| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+declare(strict_types=1); |
|
| 4 |
+ |
|
| 5 |
+use PhpCsFixer\Fixer\Comment\HeaderCommentFixer; |
|
| 6 |
+use Symplify\EasyCodingStandard\Config\ECSConfig; |
|
| 7 |
+ |
|
| 8 |
+return static function (ECSConfig $ecsConfig): void {
|
|
| 9 |
+ $ecsConfig->sets([__DIR__.'/tools/ecs/vendor/contao/easy-coding-standard/config/contao.php']); |
|
| 10 |
+ |
|
| 11 |
+ $ecsConfig->ruleWithConfiguration(HeaderCommentFixer::class, [ |
|
| 12 |
+ 'header' => "This file is part of [package name].\n\n(c) John Doe\n\n@license LGPL-3.0-or-later" |
|
| 13 |
+ ]); |
|
| 14 |
+ |
|
| 15 |
+ if (PHP_VERSION_ID < 80000) {
|
|
| 16 |
+ $ecsConfig->ruleWithConfiguration(\PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer::class, ['elements' => ['arrays'], 'after_heredoc' => true]); |
|
| 17 |
+ $ecsConfig->skip([\PhpCsFixer\Fixer\PhpUnit\PhpUnitExpectationFixer::class]); // see https://github.com/symplify/symplify/issues/3130 |
|
| 18 |
+ } |
|
| 19 |
+ |
|
| 20 |
+ // Adjust the configuration according to your needs. |
|
| 21 |
+}; |