@@ -20,8 +20,12 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $shippingMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectShippingMethod($shippingMethod); |
25 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
26 | 30 | public function continueCheckout(); |
27 | 31 | } |
@@ -271,6 +271,6 @@ |
||
271 | 271 | */ |
272 | 272 | private function generateCodeFromNameAndZone($shippingMethodName, $zoneCode = null) |
273 | 273 | { |
274 | - return StringInflector::nameToLowercaseCode($shippingMethodName).'_'.StringInflector::nameToLowercaseCode($zoneCode); |
|
274 | + return StringInflector::nameToLowercaseCode($shippingMethodName) . '_' . StringInflector::nameToLowercaseCode($zoneCode); |
|
275 | 275 | } |
276 | 276 | } |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sylius\Component\Addressing\Model\ZoneInterface; |
18 | 18 | use Sylius\Component\Addressing\Repository\ZoneRepositoryInterface; |
19 | 19 | use Sylius\Component\Core\Formatter\StringInflector; |
20 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
21 | 20 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
22 | 21 | use Sylius\Component\Resource\Factory\FactoryInterface; |
23 | 22 | use Sylius\Component\Shipping\Calculator\DefaultCalculators; |
@@ -27,6 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param OptionInterface $option |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setOption(OptionInterface $option = null); |
32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
41 | 42 | * Set internal value. |
42 | 43 | * |
43 | 44 | * @param string $value |
45 | + * @return void |
|
44 | 46 | */ |
45 | 47 | public function setValue($value); |
46 | 48 |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param string $customerName |
25 | + * @return boolean |
|
25 | 26 | */ |
26 | 27 | public function hasCustomer($customerName); |
27 | 28 | |
@@ -56,6 +57,7 @@ discard block |
||
56 | 57 | |
57 | 58 | /** |
58 | 59 | * @param string $code |
60 | + * @return void |
|
59 | 61 | */ |
60 | 62 | public function specifyTrackingCode($code); |
61 | 63 | |
@@ -68,6 +70,7 @@ discard block |
||
68 | 70 | |
69 | 71 | /** |
70 | 72 | * @param OrderInterface $order |
73 | + * @return void |
|
71 | 74 | */ |
72 | 75 | public function shipOrder(OrderInterface $order); |
73 | 76 | |
@@ -87,11 +90,13 @@ discard block |
||
87 | 90 | |
88 | 91 | /** |
89 | 92 | * @param OrderInterface $order |
93 | + * @return void |
|
90 | 94 | */ |
91 | 95 | public function completeOrderLastPayment(OrderInterface $order); |
92 | 96 | |
93 | 97 | /** |
94 | 98 | * @param OrderInterface $order |
99 | + * @return void |
|
95 | 100 | */ |
96 | 101 | public function refundOrderLastPayment(OrderInterface $order); |
97 | 102 | |
@@ -234,8 +239,14 @@ discard block |
||
234 | 239 | */ |
235 | 240 | public function getPaymentState(); |
236 | 241 | |
242 | + /** |
|
243 | + * @return void |
|
244 | + */ |
|
237 | 245 | public function cancelOrder(); |
238 | 246 | |
247 | + /** |
|
248 | + * @return void |
|
249 | + */ |
|
239 | 250 | public function deleteOrder(); |
240 | 251 | |
241 | 252 | /** |
@@ -63,12 +63,14 @@ discard block |
||
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @param string $productName |
66 | + * @return void |
|
66 | 67 | */ |
67 | 68 | public function removeProduct($productName); |
68 | 69 | |
69 | 70 | /** |
70 | 71 | * @param string $productName |
71 | 72 | * @param int $quantity |
73 | + * @return void |
|
72 | 74 | */ |
73 | 75 | public function changeQuantity($productName, $quantity); |
74 | 76 | |
@@ -112,5 +114,8 @@ discard block |
||
112 | 114 | */ |
113 | 115 | public function getQuantity($productName); |
114 | 116 | |
117 | + /** |
|
118 | + * @return void |
|
119 | + */ |
|
115 | 120 | public function clearCart(); |
116 | 121 | } |
@@ -20,24 +20,31 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $title |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function titleReview($title); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $comment |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function setComment($comment); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param string $author |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function setAuthor($author); |
35 | 38 | |
36 | 39 | /** |
37 | 40 | * @param int $rate |
41 | + * @return void |
|
38 | 42 | */ |
39 | 43 | public function rateReview($rate); |
40 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
41 | 48 | public function submitReview(); |
42 | 49 | |
43 | 50 | /** |
@@ -33,11 +33,12 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * @param string $key |
35 | 35 | * @param mixed $resource |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function set($key, $resource); |
38 | 39 | |
39 | 40 | /** |
40 | - * @return mixed |
|
41 | + * @return string |
|
41 | 42 | */ |
42 | 43 | public function getLatestResource(); |
43 | 44 | |
@@ -45,6 +46,7 @@ discard block |
||
45 | 46 | * @param array $clipboard |
46 | 47 | * |
47 | 48 | * @throws \RuntimeException |
49 | + * @return void |
|
48 | 50 | */ |
49 | 51 | public function setClipboard(array $clipboard); |
50 | 52 | } |
@@ -27,10 +27,10 @@ |
||
27 | 27 | public function process(ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | foreach ($container->getParameter('sylius.review.subjects') as $subject => $configuration) { |
30 | - $factory = $container->findDefinition('sylius.factory.'.$subject.'_review'); |
|
30 | + $factory = $container->findDefinition('sylius.factory.' . $subject . '_review'); |
|
31 | 31 | $reviewFactoryDefinition = new Definition(ReviewFactory::class); |
32 | 32 | |
33 | - $reviewFactory = $container->setDefinition(sprintf('sylius.factory.'.$subject.'_review'), $reviewFactoryDefinition); |
|
33 | + $reviewFactory = $container->setDefinition(sprintf('sylius.factory.' . $subject . '_review'), $reviewFactoryDefinition); |
|
34 | 34 | $reviewFactory->addArgument($factory); |
35 | 35 | } |
36 | 36 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function fillField($field, $value) |
34 | 34 | { |
35 | - $field = $this->getElement(str_replace(' ', '_',strtolower($field))); |
|
35 | + $field = $this->getElement(str_replace(' ', '_', strtolower($field))); |
|
36 | 36 | $field->setValue($value); |
37 | 37 | } |
38 | 38 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | private function waitForElement($timeout, $elementName) |
98 | 98 | { |
99 | - $this->getDocument()->waitFor($timeout, function () use ($elementName){ |
|
99 | + $this->getDocument()->waitFor($timeout, function () use ($elementName) { |
|
100 | 100 | return $this->hasElement($elementName); |
101 | 101 | }); |
102 | 102 | } |