From 6d9e80128e922a1379b77a1f896b4e3c719b23d1 Mon Sep 17 00:00:00 2001 From: Tom Wright Date: Mon, 29 Apr 2024 08:59:00 +0000 Subject: [PATCH] Updated ECS config Signed-off-by: Tom Wright --- ecs.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ecs.php b/ecs.php index 4e7e999..b904391 100644 --- a/ecs.php +++ b/ecs.php @@ -5,9 +5,12 @@ declare(strict_types=1); use Symplify\EasyCodingStandard\Config\ECSConfig; -use Symplify\EasyCodingStandard\ValueObject\Set\SetList; -return static function (ECSConfig $ecsConfig): void { - $ecsConfig->paths([__DIR__ . '/src']); - $ecsConfig->sets([SetList::CLEAN_CODE, SetList::PSR_12]); -}; +return ECSConfig::configure() + ->withPaths([ + __DIR__ . '/src' + ]) + ->withPreparedSets( + cleanCode: true, + psr12: true + );