@@ -1261,7 +1261,7 @@ |
||
| 1261 | 1261 | { |
| 1262 | 1262 | Assert::true( |
| 1263 | 1263 | $this->selectPaymentPage->isNextStepButtonUnavailable(), |
| 1264 | - 'The "next step" button should be disabled.' |
|
| 1264 | + 'The "next step" button should be disabled.' |
|
| 1265 | 1265 | ); |
| 1266 | 1266 | } |
| 1267 | 1267 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function getFunctions() |
| 39 | 39 | { |
| 40 | 40 | return [ |
| 41 | - new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
| 41 | + new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
| 42 | 42 | ]; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | public function getFunctions() |
| 38 | 38 | { |
| 39 | 39 | return [ |
| 40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | 42 | ]; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | ], |
| 970 | 970 | ]; |
| 971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
| 972 | - ->willReturn($createRoute); |
|
| 972 | + ->willReturn($createRoute); |
|
| 973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
| 974 | 974 | |
| 975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | ], |
| 980 | 980 | ]; |
| 981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
| 982 | - ->willReturn($updateRoute); |
|
| 982 | + ->willReturn($updateRoute); |
|
| 983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
| 984 | 984 | |
| 985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | ], |
| 990 | 990 | ]; |
| 991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 992 | - ->willReturn($deleteRoute); |
|
| 992 | + ->willReturn($deleteRoute); |
|
| 993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 994 | 994 | |
| 995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | foreach ($variant->getOptionValues() as $option) { |
| 51 | 51 | if (!$existingVariant->hasOptionValue($option)) { |
| 52 | - return false; |
|
| 52 | + return false; |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | public function filterProductTaxonsByTaxon(TaxonInterface $taxon) |
| 159 | 159 | { |
| 160 | 160 | return $this->productTaxons->filter(function ($productTaxon) use ($taxon) { |
| 161 | - return $taxon === $productTaxon->getTaxon(); |
|
| 161 | + return $taxon === $productTaxon->getTaxon(); |
|
| 162 | 162 | }); |
| 163 | 163 | } |
| 164 | 164 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return $this->repository->findAll(); |
| 88 | - }, |
|
| 88 | + }, |
|
| 89 | 89 | 'choice_value' => 'code', |
| 90 | 90 | 'choice_label' => 'name', |
| 91 | 91 | 'choice_translation_domain' => false, |
@@ -100,25 +100,25 @@ |
||
| 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} |
| 110 | 110 | */ |
| 111 | - public function getPaymentMethods() |
|
| 112 | - { |
|
| 113 | - $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); |
|
| 111 | + public function getPaymentMethods() |
|
| 112 | + { |
|
| 113 | + $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); |
|
| 114 | 114 | |
| 115 | - $paymentMethods = []; |
|
| 116 | - foreach ($inputs as $input) { |
|
| 117 | - $paymentMethods[] = trim($input->getText()); |
|
| 118 | - } |
|
| 115 | + $paymentMethods = []; |
|
| 116 | + foreach ($inputs as $input) { |
|
| 117 | + $paymentMethods[] = trim($input->getText()); |
|
| 118 | + } |
|
| 119 | 119 | |
| 120 | - return $paymentMethods; |
|
| 121 | - } |
|
| 120 | + return $paymentMethods; |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * {@inheritdoc} |
@@ -30,26 +30,26 @@ |
||
| 30 | 30 | ->add('type', ChoiceType::class, [ |
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | - ]) |
|
| 34 | - ->add('cardholderName', TextType::class, [ |
|
| 33 | + ]) |
|
| 34 | + ->add('cardholderName', TextType::class, [ |
|
| 35 | 35 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 36 | - ]) |
|
| 37 | - ->add('number', TextType::class, [ |
|
| 38 | - 'label' => 'sylius.form.credit_card.number', |
|
| 39 | - ]) |
|
| 40 | - ->add('securityCode', TextType::class, [ |
|
| 41 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | - ]) |
|
| 43 | - ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | - 'choices' => $this->getMonthChoices(), |
|
| 45 | - 'choice_translation_domain' => false, |
|
| 46 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | - ]) |
|
| 48 | - ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | - 'choices' => $this->getViableYears(), |
|
| 50 | - 'choice_translation_domain' => false, |
|
| 51 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | - ]) |
|
| 36 | + ]) |
|
| 37 | + ->add('number', TextType::class, [ |
|
| 38 | + 'label' => 'sylius.form.credit_card.number', |
|
| 39 | + ]) |
|
| 40 | + ->add('securityCode', TextType::class, [ |
|
| 41 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | + ]) |
|
| 43 | + ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | + 'choices' => $this->getMonthChoices(), |
|
| 45 | + 'choice_translation_domain' => false, |
|
| 46 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | + ]) |
|
| 48 | + ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | + 'choices' => $this->getViableYears(), |
|
| 50 | + 'choice_translation_domain' => false, |
|
| 51 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | + ]) |
|
| 53 | 53 | ; |
| 54 | 54 | } |
| 55 | 55 | |