Skip to content

Commit 63a7e1d

Browse files
mnoconkonradoboza
andauthored
Update code_samples/discounts/src/Command/ManageDiscountsCommand.php
Co-authored-by: Konrad Oboza <konrad.oboza@ibexa.co>
1 parent b71aade commit 63a7e1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code_samples/discounts/src/Command/ManageDiscountsCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7979
new IsInRegions(['germany', 'france']),
8080
new IsProductInArray(['product-1', 'product-2']),
8181
new IsInCurrency('EUR'),
82-
new IsValidDiscountCode($discountCode->getCode(), $discountCode->getGlobalLimit(), $discountCode->getUsedLimit()),
82+
new IsValidDiscountCode(
83+
$discountCode->getCode(),
84+
$discountCode->getGlobalLimit(),
85+
$discountCode->getUsedLimit()
86+
),
8387
])
8488
->setTranslations([
8589
new DiscountTranslationStruct('eng-GB', 'Discount name', 'This is a discount description', 'Promotion Label', 'Promotion Description'),

0 commit comments

Comments
 (0)