Skip to content

Commit

Permalink
Update ECS config
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Sep 26, 2024
1 parent 1f22145 commit 308ab37
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php');
return static function (ECSConfig $config): void {
$config->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php');

$ecsConfig->paths([
$config->paths([
'src',
'tests/Behat',
]);

$services = $ecsConfig->services();

// PHP 7 compatibility
$services
->set(TrailingCommaInMultilineFixer::class)
->call('configure', [['elements' => ['arrays']]])
;
$config->ruleWithConfiguration(TrailingCommaInMultilineFixer::class, ['elements' => ['arrays']]);

};

0 comments on commit 308ab37

Please sign in to comment.