@@ -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 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function closePayPalGuestOrderHappyCase(OmsTester $i) |
32 | 32 | { |
33 | 33 | $checkoutTester = $i->haveFriend('checkoutTester', CheckoutTester::class); |
34 | - $checkoutTester->does(function (CheckoutTester $i) { |
|
34 | + $checkoutTester->does(function(CheckoutTester $i) { |
|
35 | 35 | $i->addToCart(ProductDetailPage::URL); |
36 | 36 | $i->checkoutWithPayPalAsGuest(); |
37 | 37 | }); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function refundItemAndCloseOrder(OmsTester $i) |
32 | 32 | { |
33 | 33 | $checkoutTester = $i->haveFriend('checkoutTester', CheckoutTester::class); |
34 | - $checkoutTester->does(function (CheckoutTester $i) { |
|
34 | + $checkoutTester->does(function(CheckoutTester $i) { |
|
35 | 35 | $i->addToCart(ProductDetailPage::URL); |
36 | 36 | $i->checkoutWithCreditCardAsGuest(); |
37 | 37 | }); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function closeCreditCardOrderHappyCase(OmsTester $i) |
32 | 32 | { |
33 | 33 | $checkoutTester = $i->haveFriend('checkoutTester', CheckoutTester::class); |
34 | - $checkoutTester->does(function (CheckoutTester $i) { |
|
34 | + $checkoutTester->does(function(CheckoutTester $i) { |
|
35 | 35 | $i->addToCart(ProductDetailPage::URL); |
36 | 36 | $i->checkoutWithCreditCardAsGuest(); |
37 | 37 | }); |
@@ -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 BraintreeCreditCardSubFormPlugin()); |
45 | 45 | $paymentSubForms->add(new BraintreePayPalSubFormPlugin()); |
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 | $paymentHandlerPlugin = new BraintreeHandlerPlugin(); |
62 | 62 | |
63 | 63 | $paymentMethodHandler->add($paymentHandlerPlugin, BraintreeConstants::PAYMENT_METHOD_CREDIT_CARD); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function injectCommands(Container $container) |
46 | 46 | { |
47 | - $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) { |
|
47 | + $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function(CommandCollectionInterface $commandCollection) { |
|
48 | 48 | $commandCollection |
49 | 49 | ->add(new AuthorizePlugin(), 'Braintree/Authorize') |
50 | 50 | ->add(new RevertPlugin(), 'Braintree/Revert') |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function injectConditions(Container $container) |
66 | 66 | { |
67 | - $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function (ConditionCollectionInterface $conditionCollection) { |
|
67 | + $container->extend(OmsDependencyProvider::CONDITION_PLUGINS, function(ConditionCollectionInterface $conditionCollection) { |
|
68 | 68 | $conditionCollection |
69 | 69 | ->add(new IsAuthorizationApprovedPlugin(), 'Braintree/IsAuthorizationApproved') |
70 | 70 | ->add(new IsReversalApprovedPlugin(), 'Braintree/IsReversalApproved') |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | protected function injectPaymentPlugin(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 BraintreePreCheckPlugin(), BraintreeConstants::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_PRE_CHECK_PLUGINS); |
43 | 43 | $pluginCollection->add(new BraintreeSaveOrderPlugin(), BraintreeConstants::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_ORDER_SAVER_PLUGINS); |
44 | 44 | $pluginCollection->add(new BraintreePostSavePlugin(), BraintreeConstants::PROVIDER_NAME, PaymentDependencyProvider::CHECKOUT_POST_SAVE_PLUGINS); |
@@ -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 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register(Application $app) |
28 | 28 | { |
29 | - $app['monolog.level'] = function () { |
|
29 | + $app['monolog.level'] = function() { |
|
30 | 30 | return Config::get(LogConstants::LOG_LEVEL, Logger::ERROR); |
31 | 31 | }; |
32 | 32 | } |