@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | $builder->get(static::FIELD_PRODUCT_POSITION) |
| 115 | 115 | ->addModelTransformer(new CallbackTransformer( |
| 116 | - function ($productAbstractIds = null) { |
|
| 116 | + function($productAbstractIds = null) { |
|
| 117 | 117 | return $this->getFactory()->getUtilEncodingService()->encodeJson((array)$productAbstractIds); |
| 118 | 118 | }, |
| 119 | - function ($productAbstractIds = '{}') { |
|
| 119 | + function($productAbstractIds = '{}') { |
|
| 120 | 120 | return $this->getFactory()->getUtilEncodingService()->decodeJson($productAbstractIds, true); |
| 121 | 121 | } |
| 122 | 122 | )); |
@@ -193,10 +193,10 @@ discard block |
||
| 193 | 193 | protected function createProductAbstractIdsFieldTransformer() |
| 194 | 194 | { |
| 195 | 195 | return new CallbackTransformer( |
| 196 | - function (array $productAbstractIds = null) { |
|
| 196 | + function(array $productAbstractIds = null) { |
|
| 197 | 197 | return implode(',', (array)$productAbstractIds); |
| 198 | 198 | }, |
| 199 | - function ($productAbstractIds = '') { |
|
| 199 | + function($productAbstractIds = '') { |
|
| 200 | 200 | return $productAbstractIds ? explode(',', $productAbstractIds) : []; |
| 201 | 201 | } |
| 202 | 202 | ); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | protected function provideProductSetFacade(Container $container) |
| 75 | 75 | { |
| 76 | - $container[static::FACADE_PRODUCT_SET] = function (Container $container) { |
|
| 76 | + $container[static::FACADE_PRODUCT_SET] = function(Container $container) { |
|
| 77 | 77 | return new ProductSetGuiToProductSetBridge($container->getLocator()->productSet()->facade()); |
| 78 | 78 | }; |
| 79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | protected function provideLocaleFacade(Container $container) |
| 87 | 87 | { |
| 88 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
| 88 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
| 89 | 89 | return new ProductSetGuiToLocaleBridge($container->getLocator()->locale()->facade()); |
| 90 | 90 | }; |
| 91 | 91 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | protected function provideUrlFacade(Container $container) |
| 99 | 99 | { |
| 100 | - $container[static::FACADE_URL] = function (Container $container) { |
|
| 100 | + $container[static::FACADE_URL] = function(Container $container) { |
|
| 101 | 101 | return new ProductSetGuiToUrlBridge($container->getLocator()->url()->facade()); |
| 102 | 102 | }; |
| 103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | protected function provideProductImageFacade(Container $container) |
| 111 | 111 | { |
| 112 | - $container[static::FACADE_PRODUCT_IMAGE] = function (Container $container) { |
|
| 112 | + $container[static::FACADE_PRODUCT_IMAGE] = function(Container $container) { |
|
| 113 | 113 | return new ProductSetGuiToProductImageBridge($container->getLocator()->productImage()->facade()); |
| 114 | 114 | }; |
| 115 | 115 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | protected function providePriceFacade(Container $container) |
| 123 | 123 | { |
| 124 | - $container[static::FACADE_PRICE] = function (Container $container) { |
|
| 124 | + $container[static::FACADE_PRICE] = function(Container $container) { |
|
| 125 | 125 | return new ProductSetGuiToPriceBridge($container->getLocator()->price()->facade()); |
| 126 | 126 | }; |
| 127 | 127 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | protected function provideMoneyFacade(Container $container) |
| 135 | 135 | { |
| 136 | - $container[static::FACADE_MONEY] = function (Container $container) { |
|
| 136 | + $container[static::FACADE_MONEY] = function(Container $container) { |
|
| 137 | 137 | return new ProductSetGuiToMoneyBridge($container->getLocator()->money()->facade()); |
| 138 | 138 | }; |
| 139 | 139 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | */ |
| 146 | 146 | protected function provideProductSetQueryContainer(Container $container) |
| 147 | 147 | { |
| 148 | - $container[static::QUERY_CONTAINER_PRODUCT_SET] = function (Container $container) { |
|
| 148 | + $container[static::QUERY_CONTAINER_PRODUCT_SET] = function(Container $container) { |
|
| 149 | 149 | return new ProductSetGuiToProductSetQueryContainerBridge($container->getLocator()->productSet()->queryContainer()); |
| 150 | 150 | }; |
| 151 | 151 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | protected function provideProductQueryContainer(Container $container) |
| 159 | 159 | { |
| 160 | - $container[static::QUERY_CONTAINER_PRODUCT] = function (Container $container) { |
|
| 160 | + $container[static::QUERY_CONTAINER_PRODUCT] = function(Container $container) { |
|
| 161 | 161 | return new ProductSetGuiToProductBridge($container->getLocator()->product()->queryContainer()); |
| 162 | 162 | }; |
| 163 | 163 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | protected function provideUtilEncodingService(Container $container) |
| 171 | 171 | { |
| 172 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 172 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 173 | 173 | return new ProductSetGuiToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
| 174 | 174 | }; |
| 175 | 175 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function provideCommunicationLayerDependencies(Container $container) |
| 25 | 25 | { |
| 26 | - $container[self::FACADE_MAIL] = function (Container $container) { |
|
| 26 | + $container[self::FACADE_MAIL] = function(Container $container) { |
|
| 27 | 27 | return new AuthMailConnectorToMailBridge($container->getLocator()->mail()->facade()); |
| 28 | 28 | }; |
| 29 | 29 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | protected function provideProductClient(Container $container) |
| 41 | 41 | { |
| 42 | - $container[static::CLIENT_PRODUCT] = function (Container $container) { |
|
| 42 | + $container[static::CLIENT_PRODUCT] = function(Container $container) { |
|
| 43 | 43 | return new CartVariantToProductClientBridge($container->getLocator()->product()->client()); |
| 44 | 44 | }; |
| 45 | 45 | return $container; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | protected function provideAvailabilityClient(Container $container) |
| 54 | 54 | { |
| 55 | - $container[static::CLIENT_AVAILABILITY] = function (Container $container) { |
|
| 55 | + $container[static::CLIENT_AVAILABILITY] = function(Container $container) { |
|
| 56 | 56 | return new CartVariantToAvailabilityClientBridge($container->getLocator()->availability()->client()); |
| 57 | 57 | }; |
| 58 | 58 | return $container; |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | |
| 24 | 24 | use _generated\CartVariantModelTesterActions; |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Define custom actions here |
|
| 28 | - */ |
|
| 26 | + /** |
|
| 27 | + * Define custom actions here |
|
| 28 | + */ |
|
| 29 | 29 | |
| 30 | 30 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function addCurrencyPlugin(Container $container) |
| 37 | 37 | { |
| 38 | - $container[static::PLUGIN_CURRENCY] = function (Container $container) { |
|
| 38 | + $container[static::PLUGIN_CURRENCY] = function(Container $container) { |
|
| 39 | 39 | return new CurrencyPlugin(); |
| 40 | 40 | }; |
| 41 | 41 | |
@@ -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); |
@@ -34,9 +34,9 @@ |
||
| 34 | 34 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer) |
| 35 | 35 | { |
| 36 | 36 | $this |
| 37 | - ->getFactory() |
|
| 38 | - ->createOrderSaver() |
|
| 39 | - ->saveOrderPayment($quoteTransfer, $checkoutResponseTransfer); |
|
| 37 | + ->getFactory() |
|
| 38 | + ->createOrderSaver() |
|
| 39 | + ->saveOrderPayment($quoteTransfer, $checkoutResponseTransfer); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected function addRefundFacade(Container $container) |
| 45 | 45 | { |
| 46 | - $container[static::FACADE_REFUND] = function (Container $container) { |
|
| 46 | + $container[static::FACADE_REFUND] = function(Container $container) { |
|
| 47 | 47 | return new BraintreeToRefundBridge($container->getLocator()->refund()->facade()); |
| 48 | 48 | }; |
| 49 | 49 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function addCurrencyFacade(Container $container) |
| 59 | 59 | { |
| 60 | - $container[static::FACADE_CURRENCY] = function (Container $container) { |
|
| 60 | + $container[static::FACADE_CURRENCY] = function(Container $container) { |
|
| 61 | 61 | return new BraintreeToCurrencyBridge($container->getLocator()->currency()->facade()); |
| 62 | 62 | }; |
| 63 | 63 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | protected function addMoneyFacade(Container $container) |
| 73 | 73 | { |
| 74 | - $container[static::FACADE_MONEY] = function (Container $container) { |
|
| 74 | + $container[static::FACADE_MONEY] = function(Container $container) { |
|
| 75 | 75 | return new BraintreeToMoneyBridge($container->getLocator()->money()->facade()); |
| 76 | 76 | }; |
| 77 | 77 | |