Skip to content

Commit

Permalink
[CatalogPromotion][Fixtures] Remove unnecessary normalizing rules and…
Browse files Browse the repository at this point in the history
… actions in example factory
  • Loading branch information
GSadee committed Sep 10, 2021
1 parent d3ae62d commit 611967a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Fixture/Factory/CatalogPromotionExampleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
;
}

Expand Down

0 comments on commit 611967a

Please sign in to comment.