mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
* 1.13: [Admin] Change name of official support section in menu and adjust translations Add all translations & change label Add business support CTA to admin panel [ECS] Apply types order changes [ECS] Add union types ordering rule [ECS] Apply ecs fixes [ChannelsTest] use inArray to check locales [ApiBundle] Add contract tests for ProductTaxon resource [Behat] Add API test coverage for features/promotion/tracking_usage folder [ApiBundle][CatalogPromotion] Add order filters [ApiBundle][ProductTaxon] Move deleting productTaxon to productTaxon resource Use HeadersBuilder in the Customer Statistics API test Use query_bus instead of command_bus for query handlers Add handling the GetCustomerStatistics query Create the GetCustomerStatistics query and the GetCustomerStatisticsHandler Remove fr translation Add tests that form doesn't display Extra fields error after login in checkout Update src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressType.php Prevent eager loading hundreds of countries [Checkout] Prevent extra fields when login in on addressing page
50 lines
1.7 KiB
PHP
50 lines
1.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Sylius package.
|
|
*
|
|
* (c) Sylius Sp. z o.o.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpCsFixer\Fixer\ClassNotation\OrderedTypesFixer;
|
|
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer;
|
|
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
|
|
use PhpCsFixer\Fixer\LanguageConstruct\ErrorSuppressionFixer;
|
|
use PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer;
|
|
use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff;
|
|
use Symplify\EasyCodingStandard\Config\ECSConfig;
|
|
|
|
return static function (ECSConfig $config): void {
|
|
$config->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'],
|
|
'**/var/*',
|
|
]);
|
|
$config->ruleWithConfiguration(PhpdocSeparationFixer::class, ['groups' => [['Given', 'When', 'Then']]]);
|
|
$config->ruleWithConfiguration(OrderedTypesFixer::class, ['null_adjustment' => 'always_last']);
|
|
$config->ruleWithConfiguration(
|
|
HeaderCommentFixer::class,
|
|
[
|
|
'location' => 'after_open',
|
|
'comment_type' => HeaderCommentFixer::HEADER_COMMENT,
|
|
'header' => <<<TEXT
|
|
This file is part of the Sylius package.
|
|
|
|
(c) Sylius Sp. z o.o.
|
|
|
|
For the full copyright and license information, please view the LICENSE
|
|
file that was distributed with this source code.
|
|
TEXT
|
|
]
|
|
);
|
|
};
|