From 611967a1e31e4b794be0cdc4a941de5550abae25 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Thu, 9 Sep 2021 13:49:20 +0200 Subject: [PATCH] [CatalogPromotion][Fixtures] Remove unnecessary normalizing rules and actions in example factory --- Fixture/Factory/CatalogPromotionExampleFactory.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Fixture/Factory/CatalogPromotionExampleFactory.php b/Fixture/Factory/CatalogPromotionExampleFactory.php index ce43f2b99..604f29903 100644 --- a/Fixture/Factory/CatalogPromotionExampleFactory.php +++ b/Fixture/Factory/CatalogPromotionExampleFactory.php @@ -132,21 +132,7 @@ protected function configureOptions(OptionsResolver $resolver): void ->setAllowedTypes('channels', 'array') ->setNormalizer('channels', LazyOption::findBy($this->channelRepository, 'code')) ->setDefined('rules') - ->setNormalizer('rules', function (Options $options, array $rules): array { - if (empty($rules)) { - return [[]]; - } - - return $rules; - }) ->setDefined('actions') - ->setNormalizer('actions', function (Options $options, array $actions): array { - if (empty($actions)) { - return [[]]; - } - - return $actions; - }) ; }