@@ -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 | } |
@@ -25,22 +25,26 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * @param string $channelName |
27 | 27 | * @param int $price |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function specifyPrice($channelName, $price); |
30 | 31 | |
31 | 32 | /** |
32 | 33 | * @param string $channelName |
33 | 34 | * @param int $originalPrice |
35 | + * @return void |
|
34 | 36 | */ |
35 | 37 | public function specifyOriginalPrice($channelName, $originalPrice); |
36 | 38 | |
37 | 39 | /** |
38 | 40 | * @param string $name |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | public function choosePricingCalculator($name); |
41 | 44 | |
42 | 45 | /** |
43 | 46 | * @param string $channelName |
47 | + * @return void |
|
44 | 48 | */ |
45 | 49 | public function checkChannel($channelName); |
46 | 50 | |
@@ -48,23 +52,27 @@ discard block |
||
48 | 52 | * @param int $price |
49 | 53 | * @param ChannelInterface $channel |
50 | 54 | * @param CurrencyInterface $currency |
55 | + * @return void |
|
51 | 56 | */ |
52 | 57 | public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency); |
53 | 58 | |
54 | 59 | /** |
55 | 60 | * @param string $code |
61 | + * @return void |
|
56 | 62 | */ |
57 | 63 | public function specifyCode($code); |
58 | 64 | |
59 | 65 | /** |
60 | 66 | * @param string $name |
61 | 67 | * @param string $localeCode |
68 | + * @return void |
|
62 | 69 | */ |
63 | 70 | public function nameItIn($name, $localeCode); |
64 | 71 | |
65 | 72 | /** |
66 | 73 | * @param string $slug |
67 | 74 | * @param string $locale |
75 | + * @return void |
|
68 | 76 | */ |
69 | 77 | public function specifySlugIn($slug, $locale); |
70 | 78 | |
@@ -72,40 +80,47 @@ discard block |
||
72 | 80 | * @param string $attributeName |
73 | 81 | * @param string $value |
74 | 82 | * @param string $localeCode |
83 | + * @return void |
|
75 | 84 | */ |
76 | 85 | public function addAttribute($attributeName, $value, $localeCode); |
77 | 86 | |
78 | 87 | /** |
79 | 88 | * @param string $attributeName |
80 | 89 | * @param string $localeCode |
90 | + * @return void |
|
81 | 91 | */ |
82 | 92 | public function removeAttribute($attributeName, $localeCode); |
83 | 93 | |
84 | 94 | /** |
85 | 95 | * @param string $path |
86 | 96 | * @param string $type |
97 | + * @return void |
|
87 | 98 | */ |
88 | 99 | public function attachImage($path, $type = null); |
89 | 100 | |
90 | 101 | /** |
91 | 102 | * @param ProductAssociationTypeInterface $productAssociationType |
92 | 103 | * @param string[] $productsNames |
104 | + * @return void |
|
93 | 105 | */ |
94 | 106 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
95 | 107 | |
96 | 108 | /** |
97 | 109 | * @param string $productName |
98 | 110 | * @param ProductAssociationTypeInterface $productAssociationType |
111 | + * @return void |
|
99 | 112 | */ |
100 | 113 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
101 | 114 | |
102 | 115 | /** |
103 | 116 | * @param string $locale |
117 | + * @return void |
|
104 | 118 | */ |
105 | 119 | public function activateLanguageTab($locale); |
106 | 120 | |
107 | 121 | /** |
108 | 122 | * @param string $shippingCategoryName |
123 | + * @return void |
|
109 | 124 | */ |
110 | 125 | public function selectShippingCategory($shippingCategoryName); |
111 | 126 | } |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | public function isCodeDisabled(); |
30 | 30 | |
31 | 31 | /** |
32 | + * @param string $locale |
|
32 | 33 | * @return bool |
33 | 34 | */ |
34 | 35 | public function isSlugReadOnlyIn($locale); |
@@ -36,26 +37,33 @@ discard block |
||
36 | 37 | /** |
37 | 38 | * @param string $channelName |
38 | 39 | * @param int $price |
40 | + * @return void |
|
39 | 41 | */ |
40 | 42 | public function specifyPrice($channelName, $price); |
41 | 43 | |
42 | 44 | /** |
43 | 45 | * @param string $channelName |
44 | 46 | * @param int $originalPrice |
47 | + * @return void |
|
45 | 48 | */ |
46 | 49 | public function specifyOriginalPrice($channelName, $originalPrice); |
47 | 50 | |
48 | 51 | /** |
49 | 52 | * @param string $name |
50 | 53 | * @param string $localeCode |
54 | + * @return void |
|
51 | 55 | */ |
52 | 56 | public function nameItIn($name, $localeCode); |
53 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
54 | 61 | public function addSelectedAttributes(); |
55 | 62 | |
56 | 63 | /** |
57 | 64 | * @param string $attributeName |
58 | 65 | * @param string $localeCode |
66 | + * @return void |
|
59 | 67 | */ |
60 | 68 | public function removeAttribute($attributeName, $localeCode); |
61 | 69 | |
@@ -88,11 +96,18 @@ discard block |
||
88 | 96 | |
89 | 97 | /** |
90 | 98 | * @param TaxonInterface $taxon |
99 | + * @return void |
|
91 | 100 | */ |
92 | 101 | public function selectMainTaxon(TaxonInterface $taxon); |
93 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
94 | 106 | public function disableTracking(); |
95 | 107 | |
108 | + /** |
|
109 | + * @return void |
|
110 | + */ |
|
96 | 111 | public function enableTracking(); |
97 | 112 | |
98 | 113 | /** |
@@ -102,6 +117,7 @@ discard block |
||
102 | 117 | |
103 | 118 | /** |
104 | 119 | * @param string $locale |
120 | + * @return void |
|
105 | 121 | */ |
106 | 122 | public function enableSlugModification($locale); |
107 | 123 | |
@@ -115,24 +131,31 @@ discard block |
||
115 | 131 | /** |
116 | 132 | * @param string $path |
117 | 133 | * @param string $type |
134 | + * @return void |
|
118 | 135 | */ |
119 | 136 | public function attachImage($path, $type = null); |
120 | 137 | |
121 | 138 | /** |
122 | 139 | * @param string $type |
123 | 140 | * @param string $path |
141 | + * @return void |
|
124 | 142 | */ |
125 | 143 | public function changeImageWithType($type, $path); |
126 | 144 | |
127 | 145 | /** |
128 | 146 | * @param string $type |
147 | + * @return void |
|
129 | 148 | */ |
130 | 149 | public function removeImageWithType($type); |
131 | 150 | |
151 | + /** |
|
152 | + * @return void |
|
153 | + */ |
|
132 | 154 | public function removeFirstImage(); |
133 | 155 | |
134 | 156 | /** |
135 | 157 | * @param string $type |
158 | + * @return void |
|
136 | 159 | */ |
137 | 160 | public function modifyFirstImageType($type); |
138 | 161 | |
@@ -144,6 +167,7 @@ discard block |
||
144 | 167 | /** |
145 | 168 | * @param ProductAssociationTypeInterface $productAssociationType |
146 | 169 | * @param string[] $productsNames |
170 | + * @return void |
|
147 | 171 | */ |
148 | 172 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
149 | 173 | |
@@ -158,6 +182,7 @@ discard block |
||
158 | 182 | /** |
159 | 183 | * @param string $productName |
160 | 184 | * @param ProductAssociationTypeInterface $productAssociationType |
185 | + * @return void |
|
161 | 186 | */ |
162 | 187 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
163 | 188 | |
@@ -171,6 +196,7 @@ discard block |
||
171 | 196 | |
172 | 197 | /** |
173 | 198 | * @param string $locale |
199 | + * @return void |
|
174 | 200 | */ |
175 | 201 | public function activateLanguageTab($locale); |
176 | 202 | |
@@ -184,6 +210,7 @@ discard block |
||
184 | 210 | /** |
185 | 211 | * @param string $slug |
186 | 212 | * @param string $locale |
213 | + * @return void |
|
187 | 214 | */ |
188 | 215 | public function specifySlugIn($slug, $locale); |
189 | 216 |