@@ -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); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function provideCommunicationLayerDependencies(Container $container) |
25 | 25 | { |
26 | - $container[self::FACADE_DISCOUNT] = function (Container $container) { |
|
26 | + $container[self::FACADE_DISCOUNT] = function(Container $container) { |
|
27 | 27 | return new OmsDiscountConnectorToDiscountBridge($container->getLocator()->discount()->facade()); |
28 | 28 | }; |
29 | 29 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | $stores = []; |
4 | 4 | |
5 | 5 | $stores['DE'] = [ |
6 | - 'contexts' => [ // different contexts |
|
6 | + 'contexts' => [// different contexts |
|
7 | 7 | // shared settings for all contexts |
8 | 8 | '*' => [ |
9 | 9 | 'timezone' => 'Europe/Berlin', |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | 'locales' => [ |
26 | 26 | 'de' => 'de_DE', |
27 | 27 | 'en' => 'en_US', |
28 | - ], // first entry is default |
|
29 | - 'countries' => ['DE'], // first entry is default |
|
28 | + ], // first entry is default |
|
29 | + 'countries' => ['DE'], // first entry is default |
|
30 | 30 | 'currencyIsoCode' => 'EUR', // internal and shop |
31 | 31 | ]; |
32 | 32 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function provideBusinessLayerDependencies(Container $container) |
25 | 25 | { |
26 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
26 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
27 | 27 | return new ProductImageToLocaleBridge($container->getLocator()->locale()->facade()); |
28 | 28 | }; |
29 | 29 |