@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | $discountPromotionEntity = $this->getDiscountPromotionEntity($discountPromotionTransfer->getIdDiscountPromotion()); |
74 | 74 | |
75 | - $idDiscountPromotion = $this->handleDatabaseTransaction(function () use ($discountPromotionEntity, $discountPromotionTransfer) { |
|
75 | + $idDiscountPromotion = $this->handleDatabaseTransaction(function() use ($discountPromotionEntity, $discountPromotionTransfer) { |
|
76 | 76 | return $this->executeSaveDiscountPromotionTransaction($discountPromotionEntity, $discountPromotionTransfer); |
77 | 77 | }); |
78 | 78 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | 'invalid key' => false, |
80 | 80 | ]; |
81 | 81 | |
82 | -TXT |
|
82 | +txt |
|
83 | 83 | ); |
84 | 84 | } |
85 | 85 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function execute(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse) |
30 | 30 | { |
31 | - $this |
|
31 | + $this |
|
32 | 32 | ->getFacade() |
33 | 33 | ->saveGiftCardPayments($quoteTransfer, $checkoutResponse); |
34 | 34 | } |
@@ -102,14 +102,14 @@ |
||
102 | 102 | $builder |
103 | 103 | ->get($fieldName) |
104 | 104 | ->addModelTransformer(new CallbackTransformer( |
105 | - function ($idsCustomerAsArray) { |
|
105 | + function($idsCustomerAsArray) { |
|
106 | 106 | if (!count($idsCustomerAsArray)) { |
107 | 107 | return []; |
108 | 108 | } |
109 | 109 | |
110 | 110 | return implode(',', $idsCustomerAsArray); |
111 | 111 | }, |
112 | - function ($idsCustomerAsCsv) { |
|
112 | + function($idsCustomerAsCsv) { |
|
113 | 113 | if (empty($idsCustomerAsCsv)) { |
114 | 114 | return []; |
115 | 115 | } |
@@ -41,31 +41,31 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function provideCommunicationLayerDependencies(Container $container) |
43 | 43 | { |
44 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
44 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
45 | 45 | return new CmsGuiToLocaleBridge($container->getLocator()->locale()->facade()); |
46 | 46 | }; |
47 | 47 | |
48 | - $container[static::FACADE_CMS] = function (Container $container) { |
|
48 | + $container[static::FACADE_CMS] = function(Container $container) { |
|
49 | 49 | return new CmsGuiToCmsBridge($container->getLocator()->cms()->facade()); |
50 | 50 | }; |
51 | 51 | |
52 | - $container[static::FACADE_GLOSSARY] = function (Container $container) { |
|
52 | + $container[static::FACADE_GLOSSARY] = function(Container $container) { |
|
53 | 53 | return new CmsGuiToCmsGlossaryFacadeBridge($container->getLocator()->glossary()->facade()); |
54 | 54 | }; |
55 | 55 | |
56 | - $container[static::QUERY_CONTAINER_CMS] = function (Container $container) { |
|
56 | + $container[static::QUERY_CONTAINER_CMS] = function(Container $container) { |
|
57 | 57 | return new CmsGuiToCmsQueryContainerBridge($container->getLocator()->cms()->queryContainer()); |
58 | 58 | }; |
59 | 59 | |
60 | - $container[static::FACADE_URL] = function (Container $container) { |
|
60 | + $container[static::FACADE_URL] = function(Container $container) { |
|
61 | 61 | return new CmsGuiToUrlBridge($container->getLocator()->url()->facade()); |
62 | 62 | }; |
63 | 63 | |
64 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
64 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
65 | 65 | return new CmsGuiToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
66 | 66 | }; |
67 | 67 | |
68 | - $container[static::TWIG_ENVIRONMENT] = function (Container $container) { |
|
68 | + $container[static::TWIG_ENVIRONMENT] = function(Container $container) { |
|
69 | 69 | return $this->getTwigEnvironment(); |
70 | 70 | }; |
71 | 71 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | protected function addCmsPageTableExpanderPlugins(Container $container) |
93 | 93 | { |
94 | - $container[static::PLUGINS_CMS_PAGE_TABLE_EXPANDER] = function (Container $container) { |
|
94 | + $container[static::PLUGINS_CMS_PAGE_TABLE_EXPANDER] = function(Container $container) { |
|
95 | 95 | return $this->getCmsPageTableExpanderPlugins(); |
96 | 96 | }; |
97 | 97 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | protected function addCreateGlossaryExpanderPlugins(Container $container) |
115 | 115 | { |
116 | - $container[static::PLUGINS_CREATE_GLOSSARY_EXPANDER] = function (Container $container) { |
|
116 | + $container[static::PLUGINS_CREATE_GLOSSARY_EXPANDER] = function(Container $container) { |
|
117 | 117 | return $this->getCreateGlossaryExpanderPlugins(); |
118 | 118 | }; |
119 | 119 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | $giftCardPayments = $this->getGiftCardPayments($quoteTransfer); |
45 | 45 | |
46 | - $this->handleDatabaseTransaction(function () use ($giftCardPayments, $checkoutResponse) { |
|
46 | + $this->handleDatabaseTransaction(function() use ($giftCardPayments, $checkoutResponse) { |
|
47 | 47 | $this->runGiftCardPaymentSavers($giftCardPayments, $checkoutResponse); |
48 | 48 | }); |
49 | 49 | } |
@@ -32,9 +32,9 @@ |
||
32 | 32 | 'updated_at', |
33 | 33 | ]; |
34 | 34 | |
35 | - /** |
|
36 | - * Define custom actions here |
|
37 | - */ |
|
35 | + /** |
|
36 | + * Define custom actions here |
|
37 | + */ |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Note: for MySQL compatibility |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function addPaymentFormFilterPlugins(Container $container) |
60 | 60 | { |
61 | - $container[static::PLUGIN_PAYMENT_FILTERS] = function () { |
|
61 | + $container[static::PLUGIN_PAYMENT_FILTERS] = function() { |
|
62 | 62 | return $this->getPaymentFormFilterPlugins(); |
63 | 63 | }; |
64 | 64 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function addPaymentMethodHandler(Container $container) |
82 | 82 | { |
83 | - $container[static::PAYMENT_METHOD_HANDLER] = function () { |
|
83 | + $container[static::PAYMENT_METHOD_HANDLER] = function() { |
|
84 | 84 | return new StepHandlerPluginCollection(); |
85 | 85 | }; |
86 | 86 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function addPaymentSubForms(Container $container) |
96 | 96 | { |
97 | - $container[static::PAYMENT_SUB_FORMS] = function () { |
|
97 | + $container[static::PAYMENT_SUB_FORMS] = function() { |
|
98 | 98 | return new SubFormPluginCollection(); |
99 | 99 | }; |
100 | 100 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | protected function provideClients(Container $container) |
110 | 110 | { |
111 | - $container[static::CLIENT_QUOTE] = function () use ($container) { |
|
111 | + $container[static::CLIENT_QUOTE] = function() use ($container) { |
|
112 | 112 | return new CheckoutToQuoteBridge($container->getLocator()->quote()->client()); |
113 | 113 | }; |
114 | 114 |
@@ -191,12 +191,12 @@ |
||
191 | 191 | */ |
192 | 192 | public function testGetPageUrlPrefixShouldBuildUrlPrefixFromGivenLocalName() |
193 | 193 | { |
194 | - $cmsPageAttributeTransfer = new CmsPageAttributesTransfer(); |
|
195 | - $cmsPageAttributeTransfer->setLocaleName('en_US'); |
|
194 | + $cmsPageAttributeTransfer = new CmsPageAttributesTransfer(); |
|
195 | + $cmsPageAttributeTransfer->setLocaleName('en_US'); |
|
196 | 196 | |
197 | - $urlPrefix = $this->cmsFacade->getPageUrlPrefix($cmsPageAttributeTransfer); |
|
197 | + $urlPrefix = $this->cmsFacade->getPageUrlPrefix($cmsPageAttributeTransfer); |
|
198 | 198 | |
199 | - $this->assertSame('', $urlPrefix); |
|
199 | + $this->assertSame('', $urlPrefix); |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |