@@ -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 | /** |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | $product = $this->createProduct($productName, $price); |
171 | 171 | |
172 | - $product->setDescription('Awesome '.$productName); |
|
172 | + $product->setDescription('Awesome ' . $productName); |
|
173 | 173 | |
174 | 174 | if ($this->sharedStorage->has('channel')) { |
175 | 175 | $product->addChannel($this->sharedStorage->get('channel')); |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | $product->setName($productName); |
222 | 222 | $product->setCode($this->convertToCode($productName)); |
223 | - $product->setDescription('Awesome '.$productName); |
|
223 | + $product->setDescription('Awesome ' . $productName); |
|
224 | 224 | |
225 | 225 | if ($this->sharedStorage->has('channel')) { |
226 | 226 | $channel = $this->sharedStorage->get('channel'); |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | */ |
323 | 323 | public function thisProductHasAttributeWithValue(ProductInterface $product, $productAttributeType, $productAttributeName, $value) |
324 | 324 | { |
325 | - $attribute = $this->createProductAttribute($productAttributeType,$productAttributeName); |
|
325 | + $attribute = $this->createProductAttribute($productAttributeType, $productAttributeName); |
|
326 | 326 | $attributeValue = $this->createProductAttributeValue($value, $attribute); |
327 | 327 | $product->addAttribute($attributeValue); |
328 | 328 | |
@@ -334,8 +334,8 @@ discard block |
||
334 | 334 | */ |
335 | 335 | public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value) |
336 | 336 | { |
337 | - $attribute = $this->createProductAttribute('percent',$productAttributeName); |
|
338 | - $attributeValue = $this->createProductAttributeValue($value/100, $attribute); |
|
337 | + $attribute = $this->createProductAttribute('percent', $productAttributeName); |
|
338 | + $attributeValue = $this->createProductAttributeValue($value / 100, $attribute); |
|
339 | 339 | $product->addAttribute($attributeValue); |
340 | 340 | |
341 | 341 | $this->objectManager->flush(); |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | |
533 | 533 | /** @var ImageInterface $productImage */ |
534 | 534 | $productImage = $this->productImageFactory->createNew(); |
535 | - $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
535 | + $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
536 | 536 | $productImage->setCode($imageCode); |
537 | 537 | $this->imageUploader->upload($productImage); |
538 | 538 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @Transform /^address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
60 | 60 | * @Transform /^address to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/ |
61 | 61 | */ |
62 | - public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
62 | + public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null) |
|
63 | 63 | { |
64 | 64 | $countryCode = $this->countryNameConverter->convertToCode($countryName); |
65 | 65 | $customerName = explode(' ', $customerName); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | { |
289 | 289 | Assert::true( |
290 | 290 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
291 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
291 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
292 | 292 | ); |
293 | 293 | } |
294 | 294 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | Assert::true( |
303 | 303 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
304 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
304 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
305 | 305 | ); |
306 | 306 | } |
307 | 307 |
@@ -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 |
@@ -167,7 +167,7 @@ |
||
167 | 167 | */ |
168 | 168 | public function thisOrderHasNotBeenPaidForDays(OrderInterface $order, $amount, $time) |
169 | 169 | { |
170 | - $order->setCompletedAt(new \DateTime('-'.$amount.' '.$time)); |
|
170 | + $order->setCompletedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
171 | 171 | $this->orderManager->flush(); |
172 | 172 | |
173 | 173 | $this->unpaidOrdersStateUpdater->cancel(); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $productsList = $this->getDocument()->find('css', '#products'); |
62 | 62 | |
63 | - $products = $productsList->findAll('css','.column > .card'); |
|
63 | + $products = $productsList->findAll('css', '.column > .card'); |
|
64 | 64 | |
65 | 65 | return count($products); |
66 | 66 | } |
@@ -227,7 +227,7 @@ |
||
227 | 227 | { |
228 | 228 | $cartTotalText = $this->getElement('cart_total')->getText(); |
229 | 229 | |
230 | - if (strpos($cartTotalText, ',') !== false ) { |
|
230 | + if (strpos($cartTotalText, ',') !== false) { |
|
231 | 231 | return strstr($cartTotalText, ',', true); |
232 | 232 | } |
233 | 233 |