@@ -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 | } |
@@ -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 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | protected function addCustomerQueryContainer(Container $container) |
27 | 27 | { |
28 | - $container[static::QUERY_CONTAINER_CUSTOMER] = function (Container $container) { |
|
28 | + $container[static::QUERY_CONTAINER_CUSTOMER] = function(Container $container) { |
|
29 | 29 | return new CustomerUserConnectorToCustomerQueryContainerBridge($container->getLocator()->customer()->queryContainer()); |
30 | 30 | }; |
31 | 31 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function addUserQueryContainer(Container $container) |
41 | 41 | { |
42 | - $container[static::QUERY_CONTAINER_USER] = function (Container $container) { |
|
42 | + $container[static::QUERY_CONTAINER_USER] = function(Container $container) { |
|
43 | 43 | return new CustomerUserConnectorToUserQueryContainerBridge($container->getLocator()->user()->queryContainer()); |
44 | 44 | }; |
45 | 45 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function addMessengerFacade(Container $container) |
43 | 43 | { |
44 | - $container[self::FACADE_MESSENGER] = function (Container $container) { |
|
44 | + $container[self::FACADE_MESSENGER] = function(Container $container) { |
|
45 | 45 | try { |
46 | 46 | $messenger = $container->getLocator()->messenger()->facade(); |
47 | 47 | } catch (LogicException $exception) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function addStore(Container $container) |
64 | 64 | { |
65 | - $container[static::STORE] = function () { |
|
65 | + $container[static::STORE] = function() { |
|
66 | 66 | return new ZedRequestToStoreBridge(Store::getInstance()); |
67 | 67 | }; |
68 | 68 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | protected function addCustomerQueryContainer(Container $container) |
30 | 30 | { |
31 | - $container[static::QUERY_CONTAINER_CUSTOMER] = function (Container $container) { |
|
31 | + $container[static::QUERY_CONTAINER_CUSTOMER] = function(Container $container) { |
|
32 | 32 | return new CustomerUserConnectorGuiToCustomerQueryContainerBridge($container->getLocator()->customer()->queryContainer()); |
33 | 33 | }; |
34 | 34 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function addUserQueryContainer(Container $container) |
44 | 44 | { |
45 | - $container[static::QUERY_CONTAINER_USER] = function (Container $container) { |
|
45 | + $container[static::QUERY_CONTAINER_USER] = function(Container $container) { |
|
46 | 46 | return new CustomerUserConnectorGuiToUserQueryContainerBridge($container->getLocator()->user()->queryContainer()); |
47 | 47 | }; |
48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function addCustomerUserConnectorFacade(Container $container) |
58 | 58 | { |
59 | - $container[static::FACADE_CUSTOMER_USER_CONNECTOR] = function (Container $container) { |
|
59 | + $container[static::FACADE_CUSTOMER_USER_CONNECTOR] = function(Container $container) { |
|
60 | 60 | return new CustomerUserConnectorGuiToCustomerUserConnectorBridge($container->getLocator()->customerUserConnector()->facade()); |
61 | 61 | }; |
62 | 62 |