@@ -205,7 +205,7 @@ |
||
205 | 205 | { |
206 | 206 | "tracking": "BANANAS" |
207 | 207 | } |
208 | -EOT; |
|
208 | +eot; |
|
209 | 209 | |
210 | 210 | $this->client->request('PUT', $this->getShipOrderShipmentUrl($orderId, $rawResponse['shipments'][0]['id']), [], [], static::$authorizedHeaderWithContentType, $data); |
211 | 211 |
@@ -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); |
@@ -35,6 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | $percentage = $number * 100; |
37 | 37 | |
38 | - return $percentage.' %'; |
|
38 | + return $percentage . ' %'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -37,8 +37,8 @@ |
||
37 | 37 | public function getFunctions() |
38 | 38 | { |
39 | 39 | return [ |
40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
42 | 42 | ]; |
43 | 43 | } |
44 | 44 | } |
@@ -224,6 +224,7 @@ |
||
224 | 224 | /** |
225 | 225 | * @Then the payment method :paymentMethodName should appear in the registry |
226 | 226 | * @Then the payment method :paymentMethodName should be in the registry |
227 | + * @param string $paymentMethodName |
|
227 | 228 | */ |
228 | 229 | public function thePaymentMethodShouldAppearInTheRegistry($paymentMethodName) |
229 | 230 | { |
@@ -299,7 +299,7 @@ |
||
299 | 299 | public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element) |
300 | 300 | { |
301 | 301 | Assert::same( |
302 | - $this->createPage->getValidationMessage('paypal_'.$element), |
|
302 | + $this->createPage->getValidationMessage('paypal_' . $element), |
|
303 | 303 | sprintf('Please enter paypal %s.', $element) |
304 | 304 | ); |
305 | 305 | } |
@@ -18,59 +18,76 @@ |
||
18 | 18 | */ |
19 | 19 | interface CreatePageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
22 | 29 | public function disable(); |
23 | 30 | |
24 | 31 | /** |
25 | 32 | * @param string $name |
26 | 33 | * @param string $languageCode |
34 | + * @return void |
|
27 | 35 | */ |
28 | 36 | public function nameIt($name, $languageCode); |
29 | 37 | |
30 | 38 | /** |
31 | 39 | * @param string $code |
40 | + * @return void |
|
32 | 41 | */ |
33 | 42 | public function specifyCode($code); |
34 | 43 | |
35 | 44 | /** |
36 | 45 | * @param string $channelName |
46 | + * @return void |
|
37 | 47 | */ |
38 | 48 | public function checkChannel($channelName); |
39 | 49 | |
40 | 50 | /** |
41 | 51 | * @param string $description |
42 | 52 | * @param string $languageCode |
53 | + * @return void |
|
43 | 54 | */ |
44 | 55 | public function describeIt($description, $languageCode); |
45 | 56 | |
46 | 57 | /** |
47 | 58 | * @param string $instructions |
48 | 59 | * @param string $languageCode |
60 | + * @return void |
|
49 | 61 | */ |
50 | 62 | public function setInstructions($instructions, $languageCode); |
51 | 63 | |
52 | 64 | /** |
53 | 65 | * @param string $username |
66 | + * @return void |
|
54 | 67 | */ |
55 | 68 | public function setPaypalGatewayUsername($username); |
56 | 69 | |
57 | 70 | /** |
58 | 71 | * @param string $password |
72 | + * @return void |
|
59 | 73 | */ |
60 | 74 | public function setPaypalGatewayPassword($password); |
61 | 75 | |
62 | 76 | /** |
63 | 77 | * @param string $signature |
78 | + * @return void |
|
64 | 79 | */ |
65 | 80 | public function setPaypalGatewaySignature($signature); |
66 | 81 | |
67 | 82 | /** |
68 | 83 | * @param string $secretKey |
84 | + * @return void |
|
69 | 85 | */ |
70 | 86 | public function setStripeSecretKey($secretKey); |
71 | 87 | |
72 | 88 | /** |
73 | 89 | * @param string $publishableKey |
90 | + * @return void |
|
74 | 91 | */ |
75 | 92 | public function setStripePublishableKey($publishableKey); |
76 | 93 |
@@ -18,27 +18,38 @@ |
||
18 | 18 | */ |
19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
22 | 29 | public function disable(); |
23 | 30 | |
24 | 31 | /** |
25 | 32 | * @param string $name |
26 | 33 | * @param string $languageCode |
34 | + * @return void |
|
27 | 35 | */ |
28 | 36 | public function nameIt($name, $languageCode); |
29 | 37 | |
30 | 38 | /** |
31 | 39 | * @param string $username |
40 | + * @return void |
|
32 | 41 | */ |
33 | 42 | public function setPaypalGatewayUsername($username); |
34 | 43 | |
35 | 44 | /** |
36 | 45 | * @param string $password |
46 | + * @return void |
|
37 | 47 | */ |
38 | 48 | public function setPaypalGatewayPassword($password); |
39 | 49 | |
40 | 50 | /** |
41 | 51 | * @param string $signature |
52 | + * @return void |
|
42 | 53 | */ |
43 | 54 | public function setPaypalGatewaySignature($signature); |
44 | 55 |
@@ -20,12 +20,14 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $code |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function specifyCode($code); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $name |
28 | 29 | * @param string $language |
30 | + * @return void |
|
29 | 31 | */ |
30 | 32 | public function nameIt($name, $language); |
31 | 33 | |
@@ -36,6 +38,7 @@ discard block |
||
36 | 38 | |
37 | 39 | /** |
38 | 40 | * @param string $value |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | public function addAttributeValue($value); |
41 | 44 | } |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; |
15 | 15 | use Sylius\Component\Attribute\AttributeType\SelectAttributeType; |
16 | -use Sylius\Component\Attribute\AttributeType\TextAttributeType; |
|
17 | 16 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
18 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
19 | 18 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface; |
18 | 18 | use Sylius\Component\Payment\Model\PaymentMethod as BasePaymentMethod; |
19 | 19 | use Sylius\Component\Payment\Model\PaymentMethodTranslation; |
20 | -use Sylius\Component\Resource\Exception\UnsupportedMethodException; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * @author Mateusz Zalewski <[email protected]> |