| @@ -63,23 +63,23 @@ discard block | ||
| 63 | 63 | */ | 
| 64 | 64 | public function provideDependencies(Container $container): Container | 
| 65 | 65 |      { | 
| 66 | -        $container->set(static::CLIENT_PAYONE, function (Container $container) { | |
| 66 | +        $container->set(static::CLIENT_PAYONE, function(Container $container) { | |
| 67 | 67 | return $container->getLocator()->payone()->client(); | 
| 68 | 68 | }); | 
| 69 | 69 | |
| 70 | -        $container->set(static::CLIENT_CUSTOMER, function (Container $container) { | |
| 70 | +        $container->set(static::CLIENT_CUSTOMER, function(Container $container) { | |
| 71 | 71 | return new PayoneToCustomerBridge($container->getLocator()->customer()->client()); | 
| 72 | 72 | }); | 
| 73 | 73 | |
| 74 | -        $container->set(static::CLIENT_CART, function (Container $container) { | |
| 74 | +        $container->set(static::CLIENT_CART, function(Container $container) { | |
| 75 | 75 | return new PayoneToCartBridge($container->getLocator()->cart()->client()); | 
| 76 | 76 | }); | 
| 77 | 77 | |
| 78 | -        $container->set(static::CLIENT_SHIPMENT, function (Container $container) { | |
| 78 | +        $container->set(static::CLIENT_SHIPMENT, function(Container $container) { | |
| 79 | 79 | return new PayoneToShipmentBridge($container->getLocator()->shipment()->client()); | 
| 80 | 80 | }); | 
| 81 | 81 | |
| 82 | -        $container->set(static::CLIENT_CALCULATION, function (Container $container) { | |
| 82 | +        $container->set(static::CLIENT_CALCULATION, function(Container $container) { | |
| 83 | 83 | return new PayoneToCalculationBridge($container->getLocator()->calculation()->client()); | 
| 84 | 84 | }); | 
| 85 | 85 | |
| @@ -96,7 +96,7 @@ discard block | ||
| 96 | 96 | */ | 
| 97 | 97 | protected function addQuoteClient(Container $container): Container | 
| 98 | 98 |      { | 
| 99 | -        $container->set(static::CLIENT_QUOTE, function (Container $container) { | |
| 99 | +        $container->set(static::CLIENT_QUOTE, function(Container $container) { | |
| 100 | 100 | return new PayoneToQuoteClientBridge($container->getLocator()->quote()->client()); | 
| 101 | 101 | }); | 
| 102 | 102 | |
| @@ -110,7 +110,7 @@ discard block | ||
| 110 | 110 | */ | 
| 111 | 111 | protected function addClientStore(Container $container): Container | 
| 112 | 112 |      { | 
| 113 | -        $container->set(static::CLIENT_STORE, function (Container $container) { | |
| 113 | +        $container->set(static::CLIENT_STORE, function(Container $container) { | |
| 114 | 114 | return new PayoneToStoreClientBridge( | 
| 115 | 115 | $container->getLocator()->store()->client(), | 
| 116 | 116 | ); | 
| @@ -139,7 +139,7 @@ | ||
| 139 | 139 | 'required' => true, | 
| 140 | 140 | 'choices' => $choices, | 
| 141 | 141 | 'data' => '', | 
| 142 | -                'choice_attr' => function ($val) { | |
| 142 | +                'choice_attr' => function($val) { | |
| 143 | 143 | return $val === '' ? ['disabled' => 'disabled', 'selected' => 'selected'] : ['disabled' => 'disabled']; | 
| 144 | 144 | }, | 
| 145 | 145 | ], | 
| @@ -34,19 +34,19 @@ | ||
| 34 | 34 | public function __construct() | 
| 35 | 35 |      { | 
| 36 | 36 | $this->subFormsCreators = [ | 
| 37 | -            PayoneConstants::COUNTRY_AT => function () { | |
| 37 | +            PayoneConstants::COUNTRY_AT => function() { | |
| 38 | 38 | return new AtSubFormsCreator(); | 
| 39 | 39 | }, | 
| 40 | -            PayoneConstants::COUNTRY_NL => function () { | |
| 40 | +            PayoneConstants::COUNTRY_NL => function() { | |
| 41 | 41 | return new NlSubFormsCreator(); | 
| 42 | 42 | }, | 
| 43 | -            PayoneConstants::COUNTRY_DE => function () { | |
| 43 | +            PayoneConstants::COUNTRY_DE => function() { | |
| 44 | 44 | return new DeSubFormsCreator(); | 
| 45 | 45 | }, | 
| 46 | -            PayoneConstants::COUNTRY_CH => function () { | |
| 46 | +            PayoneConstants::COUNTRY_CH => function() { | |
| 47 | 47 | return new ChSubFormsCreator(); | 
| 48 | 48 | }, | 
| 49 | -            static::DEFAULT_COUNTRY => function () { | |
| 49 | +            static::DEFAULT_COUNTRY => function() { | |
| 50 | 50 | return new DefaultSubFormsCreator(); | 
| 51 | 51 | }, | 
| 52 | 52 | ]; | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | */ | 
| 98 | 98 | protected function addOmsFacade(Container $container): Container | 
| 99 | 99 |      { | 
| 100 | -        $container->set(static::FACADE_OMS, function (Container $container) { | |
| 100 | +        $container->set(static::FACADE_OMS, function(Container $container) { | |
| 101 | 101 | return new PayoneToOmsBridge($container->getLocator()->oms()->facade()); | 
| 102 | 102 | }); | 
| 103 | 103 | |
| @@ -111,7 +111,7 @@ discard block | ||
| 111 | 111 | */ | 
| 112 | 112 | protected function addRefundFacade(Container $container): Container | 
| 113 | 113 |      { | 
| 114 | -        $container->set(static::FACADE_REFUND, function (Container $container) { | |
| 114 | +        $container->set(static::FACADE_REFUND, function(Container $container) { | |
| 115 | 115 | return new PayoneToRefundBridge($container->getLocator()->refund()->facade()); | 
| 116 | 116 | }); | 
| 117 | 117 | |
| @@ -125,7 +125,7 @@ discard block | ||
| 125 | 125 | */ | 
| 126 | 126 | protected function addSalesFacade(Container $container): Container | 
| 127 | 127 |      { | 
| 128 | -        $container->set(static::FACADE_SALES, function (Container $container) { | |
| 128 | +        $container->set(static::FACADE_SALES, function(Container $container) { | |
| 129 | 129 | return new PayoneToSalesBridge($container->getLocator()->sales()->facade()); | 
| 130 | 130 | }); | 
| 131 | 131 | |
| @@ -139,7 +139,7 @@ discard block | ||
| 139 | 139 | */ | 
| 140 | 140 | protected function addCalculationFacade(Container $container): Container | 
| 141 | 141 |      { | 
| 142 | -        $container->set(static::FACADE_CALCULATION, function (Container $container) { | |
| 142 | +        $container->set(static::FACADE_CALCULATION, function(Container $container) { | |
| 143 | 143 | return new PayoneToCalculationBridge($container->getLocator()->calculation()->facade()); | 
| 144 | 144 | }); | 
| 145 | 145 | |
| @@ -153,7 +153,7 @@ discard block | ||
| 153 | 153 | */ | 
| 154 | 154 | protected function addGlossaryFacade(Container $container): Container | 
| 155 | 155 |      { | 
| 156 | -        $container->set(static::FACADE_GLOSSARY, function (Container $container) { | |
| 156 | +        $container->set(static::FACADE_GLOSSARY, function(Container $container) { | |
| 157 | 157 | return new PayoneToGlossaryFacadeBridge($container->getLocator()->glossary()->facade()); | 
| 158 | 158 | }); | 
| 159 | 159 | |
| @@ -167,7 +167,7 @@ discard block | ||
| 167 | 167 | */ | 
| 168 | 168 | protected function addStore(Container $container): Container | 
| 169 | 169 |      { | 
| 170 | -        $container->set(static::STORE_CONFIG, function () { | |
| 170 | +        $container->set(static::STORE_CONFIG, function() { | |
| 171 | 171 | return Store::getInstance(); | 
| 172 | 172 | }); | 
| 173 | 173 | |
| @@ -181,7 +181,7 @@ discard block | ||
| 181 | 181 | */ | 
| 182 | 182 | protected function addRequestStack(Container $container): Container | 
| 183 | 183 |      { | 
| 184 | -        $container->set(static::SERVICE_REQUEST_STACK, function (Container $container) { | |
| 184 | +        $container->set(static::SERVICE_REQUEST_STACK, function(Container $container) { | |
| 185 | 185 | return $container->hasApplicationService(static::SERVICE_REQUEST_STACK) | 
| 186 | 186 | ? $container->getApplicationService(static::SERVICE_REQUEST_STACK) | 
| 187 | 187 | : new RequestStack(); | 
| @@ -83,7 +83,7 @@ | ||
| 83 | 83 | } | 
| 84 | 84 | |
| 85 | 85 | $quoteTransfer->getPayment()->requirePayone(); | 
| 86 | -        $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer, $saveOrderTransfer): void { | |
| 86 | +        $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer, $saveOrderTransfer): void { | |
| 87 | 87 | $paymentTransfer = $quoteTransfer->getPaymentOrFail()->getPayoneOrFail(); | 
| 88 | 88 | $paymentTransfer->setFkSalesOrder($saveOrderTransfer->getIdSalesOrder()); | 
| 89 | 89 | $paymentPayoneEntity = $this->savePayment($paymentTransfer); | 
| @@ -64,7 +64,7 @@ discard block | ||
| 64 | 64 | |
| 65 | 65 | $response = $this->getClient()->updateStatus($statusUpdateTransfer)->getResponse(); | 
| 66 | 66 | |
| 67 | -        $callback = function () use ($response): void { | |
| 67 | +        $callback = function() use ($response): void { | |
| 68 | 68 | echo $response; | 
| 69 | 69 | }; | 
| 70 | 70 | |
| @@ -133,7 +133,7 @@ discard block | ||
| 133 | 133 | return $this->viewResponse(['errormessage' => $response->getCustomerErrorMessage()]); | 
| 134 | 134 | } | 
| 135 | 135 | |
| 136 | -        $callback = function () use ($response): void { | |
| 136 | +        $callback = function() use ($response): void { | |
| 137 | 137 | echo base64_decode((string)$response->getRawResponse()); | 
| 138 | 138 | }; | 
| 139 | 139 | |
| @@ -164,7 +164,7 @@ discard block | ||
| 164 | 164 | return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]); | 
| 165 | 165 | } | 
| 166 | 166 | |
| 167 | -        $callback = function () use ($response): void { | |
| 167 | +        $callback = function() use ($response): void { | |
| 168 | 168 | echo base64_decode((string)$response->getRawResponse()); | 
| 169 | 169 | }; | 
| 170 | 170 | |
| @@ -195,7 +195,7 @@ discard block | ||
| 195 | 195 | return $this->viewResponse(['errormessage' => $response->getInternalErrorMessage()]); | 
| 196 | 196 | } | 
| 197 | 197 | |
| 198 | -        $callback = function () use ($response): void { | |
| 198 | +        $callback = function() use ($response): void { | |
| 199 | 199 | echo base64_decode((string)$response->getRawResponse()); | 
| 200 | 200 | }; | 
| 201 | 201 | |
| @@ -45,7 +45,7 @@ discard block | ||
| 45 | 45 | */ | 
| 46 | 46 | protected function addZedRequestClient(Container $container): Container | 
| 47 | 47 |      { | 
| 48 | -        $container->set(static::CLIENT_ZED_REQUEST, function (Container $container) { | |
| 48 | +        $container->set(static::CLIENT_ZED_REQUEST, function(Container $container) { | |
| 49 | 49 | return $container->getLocator()->zedRequest()->client(); | 
| 50 | 50 | }); | 
| 51 | 51 | |
| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | */ | 
| 60 | 60 | protected function addUtilEncodingService(Container $container): Container | 
| 61 | 61 |      { | 
| 62 | -        $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) { | |
| 62 | +        $container->set(static::SERVICE_UTIL_ENCODING, function(Container $container) { | |
| 63 | 63 | return new PayoneToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service()); | 
| 64 | 64 | }); | 
| 65 | 65 | |