@@ -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 | /** |
@@ -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 | |
@@ -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 | |
@@ -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 | /** |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this |
| 23 | 23 | ->add(new Requirement( |
| 24 | 24 | $translator->trans('sylius.installer.filesystem.vendors', []), |
| 25 | - is_dir($root.'/../vendor') |
|
| 25 | + is_dir($root . '/../vendor') |
|
| 26 | 26 | )) |
| 27 | 27 | ->add(new Requirement( |
| 28 | 28 | $translator->trans('sylius.installer.filesystem.cache.header', []), |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | )) |
| 39 | 39 | ->add(new Requirement( |
| 40 | 40 | $translator->trans('sylius.installer.filesystem.parameters.header', []), |
| 41 | - is_writable($root.'/config/parameters.yml'), |
|
| 41 | + is_writable($root . '/config/parameters.yml'), |
|
| 42 | 42 | true, |
| 43 | - $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root.'/config/parameters.yml']) |
|
| 43 | + $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root . '/config/parameters.yml']) |
|
| 44 | 44 | )) |
| 45 | 45 | ; |
| 46 | 46 | } |