File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ declare (strict_types=1 );
4+
35use PhpCsFixer \Fixer \ClassNotation \VisibilityRequiredFixer ;
4- use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
5- use Symplify \EasyCodingStandard \ValueObject \Option ;
6+ use SlevomatCodingStandard \Sniffs \Commenting \InlineDocCommentDeclarationSniff ;
7+ use Symplify \EasyCodingStandard \Config \ECSConfig ;
8+
9+ return static function (ECSConfig $ ecsConfig ): void {
10+ $ ecsConfig ->paths ([
11+ __DIR__ . '/spec ' ,
12+ __DIR__ . '/src ' ,
13+ __DIR__ . '/tests/Behat ' ,
14+ __DIR__ . '/tests/Functional ' ,
15+ __DIR__ . '/ecs.php ' ,
16+ ]);
617
7- return static function (ContainerConfigurator $ containerConfigurator ): void {
8- $ containerConfigurator ->import ('vendor/sylius-labs/coding-standard/ecs.php ' );
18+ $ ecsConfig ->import ('vendor/sylius-labs/coding-standard/ecs.php ' );
919
10- $ parameters = $ containerConfigurator ->parameters ();
11- $ parameters ->set (Option::PATHS , [__DIR__ . '/src ' ]);
12- $ parameters ->set (Option::SKIP , [
20+ $ ecsConfig ->skip ([
21+ InlineDocCommentDeclarationSniff::class . '.MissingVariable ' ,
1322 VisibilityRequiredFixer::class => ['*Spec.php ' ],
1423 ]);
1524};
You can’t perform that action at this time.
0 commit comments