@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | { |
113 | 113 | "code": "1234" |
114 | 114 | } |
115 | -EOT; |
|
115 | +eot; |
|
116 | 116 | |
117 | 117 | $this->client->request('POST', $this->getPromotionCouponsUrl($promotion), [], [], static::$authorizedHeaderWithContentType, $data); |
118 | 118 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | "usageLimit": 10, |
138 | 138 | "perCustomerUsageLimit": 1 |
139 | 139 | } |
140 | -EOT; |
|
140 | +eot; |
|
141 | 141 | |
142 | 142 | $this->client->request('POST', $this->getPromotionCouponsUrl($promotion), [], [], static::$authorizedHeaderWithContentType, $data); |
143 | 143 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | "usageLimit": 30, |
239 | 239 | "perCustomerUsageLimit": 2 |
240 | 240 | } |
241 | -EOT; |
|
241 | +eot; |
|
242 | 242 | |
243 | 243 | $this->client->request('PUT', $this->getPromotionCouponUrl($promotion, $promotionCoupon), [], [], static::$authorizedHeaderWithContentType, $data); |
244 | 244 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | { |
297 | 297 | "usageLimit": 30 |
298 | 298 | } |
299 | -EOT; |
|
299 | +eot; |
|
300 | 300 | |
301 | 301 | $this->client->request('PATCH', $this->getPromotionCouponUrl($promotion, $promotionCoupon), [], [], static::$authorizedHeaderWithContentType, $data); |
302 | 302 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $builder->add((string) $option->getCode(), ProductOptionValueChoiceType::class, [ |
49 | 49 | 'label' => $option->getName() ?: $option->getCode(), |
50 | 50 | 'option' => $option, |
51 | - 'property_path' => '['.$i.']', |
|
51 | + 'property_path' => '[' . $i . ']', |
|
52 | 52 | 'block_name' => 'entry', |
53 | 53 | ]); |
54 | 54 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $builder->add($option->getCode(), ProductOptionValueChoiceType::class, [ |
35 | 35 | 'label' => $option->getName(), |
36 | 36 | 'option' => $option, |
37 | - 'property_path' => '['.$i.']', |
|
37 | + 'property_path' => '[' . $i . ']', |
|
38 | 38 | 'block_name' => 'entry', |
39 | 39 | ]); |
40 | 40 | } |
@@ -12,19 +12,15 @@ |
||
12 | 12 | namespace Sylius\Bundle\CoreBundle\Command; |
13 | 13 | |
14 | 14 | use Sylius\Component\Core\Model\AdminUserInterface; |
15 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
16 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
17 | 15 | use Sylius\Component\Locale\Model\LocaleInterface; |
18 | -use Sylius\Component\User\Model\UserInterface; |
|
19 | 16 | use Symfony\Component\Console\Helper\QuestionHelper; |
20 | 17 | use Symfony\Component\Console\Input\InputInterface; |
21 | 18 | use Symfony\Component\Console\Output\OutputInterface; |
22 | 19 | use Symfony\Component\Console\Question\Question; |
23 | 20 | use Symfony\Component\Console\Style\SymfonyStyle; |
24 | -use Symfony\Component\Intl\Intl; |
|
21 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
25 | 22 | use Symfony\Component\Validator\Constraints\Email; |
26 | 23 | use Symfony\Component\Validator\Constraints\NotBlank; |
27 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
28 | 24 | use Webmozart\Assert\Assert; |
29 | 25 | |
30 | 26 | /** |
@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | $this->addItemToCart($cartId); |
109 | 109 | |
110 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
110 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
111 | 111 | |
112 | 112 | $this->addressOrder($cartId); |
113 | 113 | $this->selectOrderShippingMethod($cartId); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | ) { |
72 | 72 | $this->channelFactory = $channelFactory; |
73 | 73 | $this->localeRepository = $localeRepository; |
74 | - $this->currencyRepository= $currencyRepository; |
|
74 | + $this->currencyRepository = $currencyRepository; |
|
75 | 75 | $this->zoneRepository = $zoneRepository; |
76 | 76 | |
77 | 77 | $this->faker = \Faker\Factory::create(); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | count($this->commands), |
77 | 77 | $command['message'] |
78 | 78 | )); |
79 | - $this->commandExecutor->runCommand('sylius:install:'.$command['command'], [], $output); |
|
79 | + $this->commandExecutor->runCommand('sylius:install:' . $command['command'], [], $output); |
|
80 | 80 | } catch (RuntimeException $exception) { |
81 | 81 | $errored = true; |
82 | 82 | } |
@@ -30,11 +30,13 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param ProductVariantInterface $productVariant |
33 | + * @return void |
|
33 | 34 | */ |
34 | 35 | public function addProductVariant(ProductVariantInterface $productVariant); |
35 | 36 | |
36 | 37 | /** |
37 | 38 | * @param ProductVariantInterface $productVariant |
39 | + * @return void |
|
38 | 40 | */ |
39 | 41 | public function removeProductVariant(ProductVariantInterface $productVariant); |
40 | 42 |