@@ -19,10 +19,10 @@ |
||
19 | 19 | use Sylius\Component\Core\Model\OrderInterface; |
20 | 20 | use Sylius\Component\Core\Model\ShipmentInterface; |
21 | 21 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
22 | +use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
22 | 23 | use Sylius\Component\Core\Resolver\ZoneAndChannelBasedShippingMethodsResolver; |
23 | 24 | use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityCheckerInterface; |
24 | 25 | use Sylius\Component\Shipping\Model\ShippingSubjectInterface; |
25 | -use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
|
26 | 26 | use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
27 | 27 | |
28 | 28 | /** |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use SM\StateMachine\StateMachineInterface; |
16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $imageForm = $this->getLastImageElement(); |
56 | 56 | $imageForm->fillField('Code', $code); |
57 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
57 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Behat\Mink\Driver\Selenium2Driver; |
15 | 15 | use Behat\Mink\Element\NodeElement; |
16 | 16 | use Behat\Mink\Exception\ElementNotFoundException; |
17 | -use Behat\Mink\Exception\UnsupportedDriverActionException; |
|
18 | 17 | use Sylius\Behat\Behaviour\SpecifiesItsCode; |
19 | 18 | use Sylius\Behat\Page\Admin\Crud\CreatePage as BaseCreatePage; |
20 | 19 | use Sylius\Component\Core\Model\TaxonInterface; |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | $imageForm = $this->getLastImageElement(); |
154 | 154 | $imageForm->fillField('Code', $code); |
155 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
155 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $filesPath = $this->getParameter('files_path'); |
164 | 164 | |
165 | 165 | $imageForm = $this->getImageElementByCode($code); |
166 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
166 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | private function getImageElementByCode($code) |
262 | 262 | { |
263 | 263 | $images = $this->getElement('images'); |
264 | - $inputCode = $images->find('css', 'input[value="'.$code.'"]'); |
|
264 | + $inputCode = $images->find('css', 'input[value="' . $code . '"]'); |
|
265 | 265 | |
266 | 266 | if (null === $inputCode) { |
267 | 267 | return null; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $imageForm = $this->getLastImageElement(); |
56 | 56 | $imageForm->fillField('Code', $code); |
57 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
57 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param string $email |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setEmail($email); |
43 | 44 | |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | |
51 | 52 | /** |
52 | 53 | * @param string $emailCanonical |
54 | + * @return void |
|
53 | 55 | */ |
54 | 56 | public function setEmailCanonical($emailCanonical); |
55 | 57 | |
@@ -67,6 +69,7 @@ discard block |
||
67 | 69 | |
68 | 70 | /** |
69 | 71 | * @param string $firstName |
72 | + * @return void |
|
70 | 73 | */ |
71 | 74 | public function setFirstName($firstName); |
72 | 75 | |
@@ -77,6 +80,7 @@ discard block |
||
77 | 80 | |
78 | 81 | /** |
79 | 82 | * @param string $lastName |
83 | + * @return void |
|
80 | 84 | */ |
81 | 85 | public function setLastName($lastName); |
82 | 86 | |
@@ -87,6 +91,7 @@ discard block |
||
87 | 91 | |
88 | 92 | /** |
89 | 93 | * @param \DateTime $birthday |
94 | + * @return void |
|
90 | 95 | */ |
91 | 96 | public function setBirthday(\DateTime $birthday = null); |
92 | 97 | |
@@ -99,6 +104,7 @@ discard block |
||
99 | 104 | * You should use interface constants for that. |
100 | 105 | * |
101 | 106 | * @param string $gender |
107 | + * @return void |
|
102 | 108 | */ |
103 | 109 | public function setGender($gender); |
104 | 110 | |
@@ -119,6 +125,7 @@ discard block |
||
119 | 125 | |
120 | 126 | /** |
121 | 127 | * @param string $phoneNumber |
128 | + * @return void |
|
122 | 129 | */ |
123 | 130 | public function setPhoneNumber($phoneNumber); |
124 | 131 | } |
@@ -27,6 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $value |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setValue($value); |
32 | 33 | } |
@@ -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 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ) { |
87 | 87 | $review = $this->createProductReview($product, $title, $rating, $title, $customer); |
88 | 88 | if (null !== $daysSinceCreation) { |
89 | - $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days')); |
|
89 | + $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days')); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->productReviewRepository->add($review); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | { |
115 | 115 | $customer = $this->sharedStorage->get('customer'); |
116 | 116 | foreach ($rates as $key => $rate) { |
117 | - $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer); |
|
117 | + $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer); |
|
118 | 118 | $this->productReviewRepository->add($review); |
119 | 119 | } |
120 | 120 | } |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Sylius\Behat\Page\Admin\Channel\IndexPageInterface; |
16 | 16 | use Sylius\Behat\Page\Admin\Channel\UpdatePageInterface; |
17 | 17 | use Sylius\Behat\Page\Shop\HomePageInterface; |
18 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
18 | 19 | use Sylius\Bundle\ThemeBundle\Model\ThemeInterface; |
19 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
20 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
21 | 21 | use Webmozart\Assert\Assert; |
22 | 22 | |
23 | 23 | /** |