import('vendor/sylius-labs/coding-standard/ecs.php'); $config->parallel(); $config->paths(['src/Sylius', 'tests']); $config->skip([ InlineDocCommentDeclarationSniff::class . '.MissingVariable', InlineDocCommentDeclarationSniff::class . '.NoAssignment', VisibilityRequiredFixer::class => ['*Spec.php'], ErrorSuppressionFixer::class => 'src/Sylius/Bundle/CoreBundle/DependencyInjection/Compiler/BackwardsCompatibility/CancelOrderStateMachineCallbackPass.php', '**/var/*', ]); $config->ruleWithConfiguration(PhpdocSeparationFixer::class, ['groups' => [['Given', 'When', 'Then']]]); $config->ruleWithConfiguration(OrderedTypesFixer::class, ['null_adjustment' => 'always_last']); $config->ruleWithConfiguration(NullableTypeDeclarationForDefaultNullValueFixer::class, ['use_nullable_type_declaration' => true]); $config->ruleWithConfiguration( HeaderCommentFixer::class, [ 'location' => 'after_open', 'comment_type' => HeaderCommentFixer::HEADER_COMMENT, 'header' => <<