mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Sylius package.
|
|
*
|
|
* (c) Paweł Jędrzejewski
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
|
|
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
|
|
use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
use Symplify\EasyCodingStandard\ValueObject\Option;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php');
|
|
|
|
$containerConfigurator->services()
|
|
->set(HeaderCommentFixer::class)
|
|
->call('configure', [
|
|
[
|
|
'location' => 'after_open',
|
|
'comment_type' => HeaderCommentFixer::HEADER_COMMENT,
|
|
'header' => <<<TEXT
|
|
This file is part of the Sylius package.
|
|
|
|
(c) Paweł Jędrzejewski
|
|
|
|
For the full copyright and license information, please view the LICENSE
|
|
file that was distributed with this source code.
|
|
TEXT
|
|
]
|
|
]);
|
|
|
|
$containerConfigurator->parameters()->set(Option::SKIP, [
|
|
InlineDocCommentDeclarationSniff::class . '.MissingVariable',
|
|
InlineDocCommentDeclarationSniff::class . '.NoAssignment',
|
|
VisibilityRequiredFixer::class => ['*Spec.php'],
|
|
'**/var/*',
|
|
]);
|
|
};
|