@@ -23,9 +23,6 @@ |
||
23 | 23 | final class OrderProductEligibilityValidator extends ConstraintValidator |
24 | 24 | { |
25 | 25 | /** |
26 | - * @param OrderInterface $value |
|
27 | - * |
|
28 | - * {@inheritdoc} |
|
29 | 26 | */ |
30 | 27 | public function validate($order, Constraint $constraint) |
31 | 28 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Validator\Constraints; |
15 | 15 |
@@ -36,9 +36,6 @@ |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * @param OrderInterface $value |
|
40 | - * |
|
41 | - * {@inheritdoc} |
|
42 | 39 | */ |
43 | 40 | public function validate($order, Constraint $constraint) |
44 | 41 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CoreBundle\Validator\Constraints; |
15 | 15 |
@@ -35,6 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param float $weight |
38 | + * @return void |
|
38 | 39 | */ |
39 | 40 | public function setWeight($weight); |
40 | 41 | |
@@ -45,6 +46,7 @@ discard block |
||
45 | 46 | |
46 | 47 | /** |
47 | 48 | * @param float $width |
49 | + * @return void |
|
48 | 50 | */ |
49 | 51 | public function setWidth($width); |
50 | 52 | |
@@ -55,6 +57,7 @@ discard block |
||
55 | 57 | |
56 | 58 | /** |
57 | 59 | * @param float $height |
60 | + * @return void |
|
58 | 61 | */ |
59 | 62 | public function setHeight($height); |
60 | 63 | |
@@ -65,16 +68,19 @@ discard block |
||
65 | 68 | |
66 | 69 | /** |
67 | 70 | * @param float $depth |
71 | + * @return void |
|
68 | 72 | */ |
69 | 73 | public function setDepth($depth); |
70 | 74 | |
71 | 75 | /** |
72 | 76 | * @param TaxCategoryInterface $category |
77 | + * @return void |
|
73 | 78 | */ |
74 | 79 | public function setTaxCategory(TaxCategoryInterface $category = null); |
75 | 80 | |
76 | 81 | /** |
77 | 82 | * @param ShippingCategoryInterface $shippingCategory |
83 | + * @return void |
|
78 | 84 | */ |
79 | 85 | public function setShippingCategory(ShippingCategoryInterface $shippingCategory); |
80 | 86 | |
@@ -106,11 +112,13 @@ discard block |
||
106 | 112 | |
107 | 113 | /** |
108 | 114 | * @param ChannelPricingInterface $channelPricing |
115 | + * @return void |
|
109 | 116 | */ |
110 | 117 | public function addChannelPricing(ChannelPricingInterface $channelPricing); |
111 | 118 | |
112 | 119 | /** |
113 | 120 | * @param ChannelPricingInterface $channelPricing |
121 | + * @return void |
|
114 | 122 | */ |
115 | 123 | public function removeChannelPricing(ChannelPricingInterface $channelPricing); |
116 | 124 | |
@@ -121,6 +129,7 @@ discard block |
||
121 | 129 | |
122 | 130 | /** |
123 | 131 | * @param bool $shippingRequired |
132 | + * @return void |
|
124 | 133 | */ |
125 | 134 | public function setShippingRequired($shippingRequired); |
126 | 135 | } |
@@ -17,8 +17,8 @@ |
||
17 | 17 | use Sylius\Component\Resource\Model\VersionedInterface; |
18 | 18 | use Sylius\Component\Shipping\Model\ShippableInterface; |
19 | 19 | use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
20 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
21 | 20 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
21 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Core\Model; |
15 | 15 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | ] |
87 | 87 | } |
88 | -EOT; |
|
88 | +eot; |
|
89 | 89 | |
90 | 90 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
91 | 91 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | ] |
177 | 177 | } |
178 | -EOT; |
|
178 | +eot; |
|
179 | 179 | |
180 | 180 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
181 | 181 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | ] |
218 | 218 | } |
219 | -EOT; |
|
219 | +eot; |
|
220 | 220 | |
221 | 221 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
222 | 222 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Tests\Controller; |
15 | 15 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $this->addItemToCart($cartId); |
60 | 60 | $this->addressOrder($cartId); |
61 | 61 | |
62 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
62 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
63 | 63 | |
64 | 64 | $response = $this->client->getResponse(); |
65 | 65 | $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | EOT; |
91 | 91 | |
92 | - $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
92 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
93 | 93 | |
94 | 94 | $response = $this->client->getResponse(); |
95 | 95 |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | } |
150 | 150 | ] |
151 | 151 | } |
152 | -EOT; |
|
152 | +eot; |
|
153 | 153 | |
154 | 154 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
155 | 155 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | } |
184 | 184 | ] |
185 | 185 | } |
186 | -EOT; |
|
186 | +eot; |
|
187 | 187 | |
188 | 188 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
189 | 189 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | ] |
225 | 225 | } |
226 | -EOT; |
|
226 | +eot; |
|
227 | 227 | |
228 | 228 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
229 | 229 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | } |
260 | 260 | ] |
261 | 261 | } |
262 | -EOT; |
|
262 | +eot; |
|
263 | 263 | |
264 | 264 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
265 | 265 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Tests\Controller; |
15 | 15 |
@@ -12,14 +12,14 @@ |
||
12 | 12 | namespace Sylius\Bundle\CustomerBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType; |
15 | +use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
15 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
16 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
17 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
18 | -use Sylius\Component\Customer\Model\CustomerGroup; |
|
19 | -use Sylius\Component\Resource\Factory\Factory; |
|
20 | 18 | use Sylius\Component\Customer\Model\Customer; |
21 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
19 | +use Sylius\Component\Customer\Model\CustomerGroup; |
|
22 | 20 | use Sylius\Component\Customer\Model\CustomerGroupInterface; |
21 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
22 | +use Sylius\Component\Resource\Factory\Factory; |
|
23 | 23 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
24 | 24 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
25 | 25 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\CustomerBundle\DependencyInjection; |
15 | 15 |
@@ -14,12 +14,9 @@ |
||
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use Sylius\Component\Core\Checker\OrderPaymentMethodSelectionRequirementCheckerInterface; |
16 | 16 | use Sylius\Component\Core\Checker\OrderShippingMethodSelectionRequirementCheckerInterface; |
17 | -use Sylius\Component\Core\Model\OrderItemInterface; |
|
18 | -use Sylius\Component\Core\Model\ShipmentInterface; |
|
19 | 17 | use Sylius\Component\Core\OrderCheckoutTransitions; |
20 | 18 | use Sylius\Component\Order\Model\OrderInterface; |
21 | 19 | use Sylius\Component\Order\StateResolver\StateResolverInterface; |
22 | -use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
|
23 | 20 | |
24 | 21 | /** |
25 | 22 | * @author Anna Walasek <[email protected]> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Core\StateResolver; |
15 | 15 |
@@ -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 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Tests\Controller; |
15 | 15 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $this->addItemToCart($cartId); |
111 | 111 | |
112 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
112 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
113 | 113 | |
114 | 114 | $this->addressOrder($cartId); |
115 | 115 | $this->selectOrderShippingMethod($cartId); |
@@ -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 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\PaymentMethod; |
15 | 15 |