@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function storeAllowsPaying($paymentMethodName) |
89 | 89 | { |
90 | - $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method'); |
|
90 | + $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method'); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
141 | 141 | { |
142 | - $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false); |
|
142 | + $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
@@ -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; |
@@ -234,7 +234,7 @@ |
||
234 | 234 | */ |
235 | 235 | public function iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product) |
236 | 236 | { |
237 | - $this->showPage->waitForValidationErrors(3); |
|
237 | + $this->showPage->waitForValidationErrors(3); |
|
238 | 238 | |
239 | 239 | Assert::true( |
240 | 240 | $this->showPage->hasProductOutOfStockValidationMessage($product), |
@@ -65,8 +65,7 @@ |
||
65 | 65 | |
66 | 66 | function is_configures_options( |
67 | 67 | OptionsResolver $resolver |
68 | - ) |
|
69 | - { |
|
68 | + ) { |
|
70 | 69 | $resolver->setDefaults([ |
71 | 70 | 'format' => 'Y:m:d H:i:s' |
72 | 71 | ])->shouldBeCalled(); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $this->couponRepository->remove($coupon); |
64 | 64 | |
65 | 65 | throw new \Exception(sprintf('Coupon "%s" has been removed, but it should not.', $coupon->getCode())); |
66 | - } catch(ForeignKeyConstraintViolationException $exception) { |
|
66 | + } catch (ForeignKeyConstraintViolationException $exception) { |
|
67 | 67 | $this->sharedStorage->set('last_exception', $exception); |
68 | 68 | } |
69 | 69 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time) |
60 | 60 | { |
61 | - $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time)); |
|
61 | + $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
62 | 62 | $this->orderManager->flush(); |
63 | 63 | } |
64 | 64 |
@@ -100,10 +100,10 @@ |
||
100 | 100 | /** |
101 | 101 | * {@inheritdoc} |
102 | 102 | */ |
103 | - public function isNextStepButtonUnavailable() |
|
104 | - { |
|
105 | - return $this->getElement('next_step')->hasClass('disabled'); |
|
106 | - } |
|
103 | + public function isNextStepButtonUnavailable() |
|
104 | + { |
|
105 | + return $this->getElement('next_step')->hasClass('disabled'); |
|
106 | + } |
|
107 | 107 | |
108 | 108 | /** |
109 | 109 | * {@inheritdoc} |
@@ -144,7 +144,8 @@ |
||
144 | 144 | /** |
145 | 145 | * {@inheritdoc} |
146 | 146 | */ |
147 | - public function getValidationMessageForImageAtPlace($place) { |
|
147 | + public function getValidationMessageForImageAtPlace($place) |
|
148 | + { |
|
148 | 149 | |
149 | 150 | $images = $this->getImageElements(); |
150 | 151 |
@@ -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; |
@@ -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 | /** |