Skip to content

Commit

Permalink
Update config ecs. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jan 21, 2024
1 parent ca22404 commit 0c58871
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
->withConfiguredRule(
ClassDefinitionFixer::class,
[
'space_before_parenthesis' => true,
],
)
->withFileExtensions(['php'])
->withPaths(
[
__DIR__ . '/src',
__DIR__ . '/tests',
],
)
->withRules(
[
NoUnusedImportsFixer::class,
OrderedClassElementsFixer::class,
OrderedTraitsFixer::class,
]
)
->withPhpCsFixerSets(perCS20: true)
->withPreparedSets(
arrays: true,
cleanCode: true,
Expand All @@ -31,10 +32,10 @@
psr12: true,
strict: true
)
->withPhpCsFixerSets(perCS20: true)
->withConfiguredRule(
ClassDefinitionFixer::class,
->withRules(
[
'space_before_parenthesis' => true,
],
NoUnusedImportsFixer::class,
OrderedClassElementsFixer::class,
OrderedTraitsFixer::class,
]
);

0 comments on commit 0c58871

Please sign in to comment.