Skip to content

Commit

Permalink
refactor: Clean up ECS config
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 29, 2024
1 parent 9a67e26 commit c49f33b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

declare(strict_types=1);

use craft\ecs\SetList as CraftSetList;
use craft\ecs\SetList;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;

return static function (ECSConfig $ecsConfig): void {
$parameters = $ecsConfig->parameters();
$parameters->set(Option::PARALLEL, true);
$ecsConfig->import(CraftSetList::CRAFT_CMS_4);
return static function(ECSConfig $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
__FILE__,
]);
$ecsConfig->parallel();
$ecsConfig->sets([SetList::CRAFT_CMS_4]);
};

0 comments on commit c49f33b

Please sign in to comment.