@@ -59,7 +59,7 @@ |
||
| 59 | 59 | { |
| 60 | 60 | usort( |
| 61 | 61 | $options, |
| 62 | - function (ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
| 62 | + function(ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
| 63 | 63 | return ($productOptionLeft->getIdProductOptionValue() < $productOptionRight->getIdProductOptionValue()) ? -1 : 1; |
| 64 | 64 | } |
| 65 | 65 | ); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $resolver->setDefaults([ |
| 42 | 42 | 'data_class' => RatepayPaymentInstallmentTransfer::class, |
| 43 | 43 | SubFormInterface::OPTIONS_FIELD_NAME => [], |
| 44 | - 'validation_groups' => function (FormInterface $form) { |
|
| 44 | + 'validation_groups' => function(FormInterface $form) { |
|
| 45 | 45 | |
| 46 | 46 | if ($form->getParent()[PaymentTransfer::PAYMENT_SELECTION]->getData() != $this->getPropertyPath()) { |
| 47 | 47 | return; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected function injectPaymentSubForms(ContainerInterface $container) |
| 44 | 44 | { |
| 45 | - $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function (SubFormPluginCollection $paymentSubForms) { |
|
| 45 | + $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function(SubFormPluginCollection $paymentSubForms) { |
|
| 46 | 46 | $paymentSubForms->add(new RatepayElvSubFormPlugin()); |
| 47 | 47 | $paymentSubForms->add(new RatepayInstallmentSubFormPlugin()); |
| 48 | 48 | $paymentSubForms->add(new RatepayInvoiceSubFormPlugin()); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function injectPaymentMethodHandler(ContainerInterface $container) |
| 63 | 63 | { |
| 64 | - $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function (StepHandlerPluginCollection $paymentMethodHandler) { |
|
| 64 | + $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function(StepHandlerPluginCollection $paymentMethodHandler) { |
|
| 65 | 65 | $ratepayHandlerPlugin = new RatepayHandlerPlugin(); |
| 66 | 66 | |
| 67 | 67 | $paymentMethodHandler->add($ratepayHandlerPlugin, RatepayConstants::PAYMENT_METHOD_ELV); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function injectCommands(Container $container) |
| 48 | 48 | { |
| 49 | - $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) { |
|
| 49 | + $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function(CommandCollectionInterface $commandCollection) { |
|
| 50 | 50 | $commandCollection |
| 51 | 51 | ->add(new PaymentRequestPlugin(), 'Ratepay/PaymentRequest') |
| 52 | 52 | ->add(new CancelPaymentPlugin(), 'Ratepay/CancelOrder') |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function injectConditions(Container $container) |
| 69 | 69 | { |
| 70 | - $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function (ConditionCollectionInterface $conditionCollection) { |
|
| 70 | + $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function(ConditionCollectionInterface $conditionCollection) { |
|
| 71 | 71 | $conditionCollection |
| 72 | 72 | ->add(new IsPaymentRequestPlugin(), 'Ratepay/IsPaymentRequestSuccess') |
| 73 | 73 | ->add(new IsCancellationConfirmedPlugin(), 'Ratepay/IsCancellationConfirmed') |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function injectPaymentPlugins(Container $container) |
| 39 | 39 | { |
| 40 | - $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function (CheckoutPluginCollection $pluginCollection) { |
|
| 40 | + $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function(CheckoutPluginCollection $pluginCollection) { |
|
| 41 | 41 | $pluginCollection->add(new RatepaySaveOrderPlugin(), RatepayConstants::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_ORDER_SAVER_PLUGINS); |
| 42 | 42 | $pluginCollection->add(new RatepayPostCheckPlugin(), RatepayConstants::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_POST_SAVE_PLUGINS); |
| 43 | 43 | |
@@ -268,7 +268,8 @@ |
||
| 268 | 268 | } else { |
| 269 | 269 | $grouppedItems[$basketItem->getGroupKey()] = clone $basketItem; |
| 270 | 270 | } |
| 271 | - if ($discountTaxRate < $basketItem->getTaxRate()) { // take max taxRate |
|
| 271 | + if ($discountTaxRate < $basketItem->getTaxRate()) { |
|
| 272 | +// take max taxRate |
|
| 272 | 273 | $discountTaxRate = $basketItem->getTaxRate(); |
| 273 | 274 | } |
| 274 | 275 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function injectPaymentSubForms(ContainerInterface $container) |
| 42 | 42 | { |
| 43 | - $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function (SubFormPluginCollection $paymentSubForms) { |
|
| 43 | + $container->extend(CheckoutDependencyProvider::PAYMENT_SUB_FORMS, function(SubFormPluginCollection $paymentSubForms) { |
|
| 44 | 44 | $paymentSubForms->add(new DummyPaymentCreditCardSubFormPlugin()); |
| 45 | 45 | $paymentSubForms->add(new DummyPaymentInvoiceSubFormPlugin()); |
| 46 | 46 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function injectPaymentMethodHandler(ContainerInterface $container) |
| 59 | 59 | { |
| 60 | - $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function (StepHandlerPluginCollection $paymentMethodHandler) { |
|
| 60 | + $container->extend(CheckoutDependencyProvider::PAYMENT_METHOD_HANDLER, function(StepHandlerPluginCollection $paymentMethodHandler) { |
|
| 61 | 61 | $dummyPaymentHandlerPlugin = new DummyPaymentHandlerPlugin(); |
| 62 | 62 | |
| 63 | 63 | $paymentMethodHandler->add($dummyPaymentHandlerPlugin, DummyPaymentConfig::PAYMENT_METHOD_CREDIT_CARD); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function injectCommands(Container $container) |
| 42 | 42 | { |
| 43 | - $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) { |
|
| 43 | + $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function(CommandCollectionInterface $commandCollection) { |
|
| 44 | 44 | $commandCollection->add(new RefundPlugin(), 'DummyPayment/Refund'); |
| 45 | 45 | $commandCollection->add(new PayPlugin(), 'DummyPayment/Pay'); |
| 46 | 46 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function injectConditions(Container $container) |
| 59 | 59 | { |
| 60 | - $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function (ConditionCollectionInterface $conditionCollection) { |
|
| 60 | + $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function(ConditionCollectionInterface $conditionCollection) { |
|
| 61 | 61 | $conditionCollection->add(new IsAuthorizedPlugin(), 'DummyPayment/IsAuthorized'); |
| 62 | 62 | $conditionCollection->add(new IsPayedPlugin(), 'DummyPayment/IsPayed'); |
| 63 | 63 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | protected function injectPaymentPlugins(Container $container) |
| 40 | 40 | { |
| 41 | - $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function (CheckoutPluginCollection $pluginCollection) { |
|
| 41 | + $container->extend(PaymentDependencyProvider::CHECKOUT_PLUGINS, function(CheckoutPluginCollection $pluginCollection) { |
|
| 42 | 42 | $pluginCollection->add(new DummyPaymentPreCheckPlugin(), DummyPaymentConfig::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_PRE_CHECK_PLUGINS); |
| 43 | 43 | $pluginCollection->add(new DummyPaymentSaveOrderPlugin(), DummyPaymentConfig::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_ORDER_SAVER_PLUGINS); |
| 44 | 44 | $pluginCollection->add(new DummyPaymentPostCheckPlugin(), DummyPaymentConfig::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_POST_SAVE_PLUGINS); |