@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | protected function getTemplatePath(): string |
64 | 64 | { |
65 | - return EasycreditConfig::PROVIDER_NAME . '/' . EasycreditConfig::PAYMENT_METHOD; |
|
65 | + return EasycreditConfig::PROVIDER_NAME.'/'.EasycreditConfig::PAYMENT_METHOD; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function addClientCalculation(Container $container): Container |
43 | 43 | { |
44 | - $container->set(static::CLIENT_CALCULATION, function (Container $container) { |
|
44 | + $container->set(static::CLIENT_CALCULATION, function(Container $container) { |
|
45 | 45 | return new EasycreditToCalculationClientBridge($container->getLocator()->calculation()->client()); |
46 | 46 | }); |
47 | 47 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function addClientQuote(Container $container): Container |
57 | 57 | { |
58 | - $container->set(static::CLIENT_QUOTE, function (Container $container) { |
|
58 | + $container->set(static::CLIENT_QUOTE, function(Container $container) { |
|
59 | 59 | return new EasycreditToQuoteClientBridge($container->getLocator()->quote()->client()); |
60 | 60 | }); |
61 | 61 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function addPluginMoney(Container $container): Container |
71 | 71 | { |
72 | - $container->set(static::PLUGIN_MONEY, function () { |
|
72 | + $container->set(static::PLUGIN_MONEY, function() { |
|
73 | 73 | return new MoneyPlugin(); |
74 | 74 | }); |
75 | 75 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function addZedRequestClient(Container $container): Container |
36 | 36 | { |
37 | - $container->set(static::CLIENT_ZED_REQUEST, function (Container $container) { |
|
37 | + $container->set(static::CLIENT_ZED_REQUEST, function(Container $container) { |
|
38 | 38 | return new EasycreditToZedRequestClientBridge($container->getLocator()->zedRequest()->client()); |
39 | 39 | }); |
40 | 40 |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | $anfallendeZinsen = isset($payload[static::KEY_RATENPLAN][static::KEY_ZINSEN][static::KEY_ANFALLENDE_ZINSEN]) ? |
181 | - (float)$payload[static::KEY_RATENPLAN][static::KEY_ZINSEN][static::KEY_ANFALLENDE_ZINSEN] : null; |
|
181 | + (float) $payload[static::KEY_RATENPLAN][static::KEY_ZINSEN][static::KEY_ANFALLENDE_ZINSEN] : null; |
|
182 | 182 | $tilgungsplanText = $payload[static::KEY_TILGUNGSPLAN_TEXT] ?? null; |
183 | 183 | |
184 | 184 | $easycreditInterestAndAdjustTotalSumResponseTransfer->setAnfallendeZinsen($anfallendeZinsen); |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $responseTransfer->setBody($this->utilEncodingService->decodeJson($response->getBody(), true)); |
139 | 139 | } catch (RequestException $requestException) { |
140 | 140 | $errorTransfer = new EasycreditResponseErrorTransfer(); |
141 | - $errorTransfer->setErrorCode((string)$requestException->getCode()); |
|
141 | + $errorTransfer->setErrorCode((string) $requestException->getCode()); |
|
142 | 142 | $errorTransfer->setErrorMessage($requestException->getMessage()); |
143 | 143 | |
144 | 144 | $responseTransfer->setError($errorTransfer); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | $expenseTransfer = new ExpenseTransfer(); |
89 | 89 | $expenseTransfer->setType(EasycreditConstants::EASYCREDIT_EXPENSE_TYPE); |
90 | 90 | $expenseTransfer->setUnitNetPrice(0); |
91 | - $expenseTransfer->setUnitGrossPrice($this->moneyPlugin->convertDecimalToInteger((float)$quoteTransfer->getPaymentOrFail()->getEasycreditOrFail()->getAnfallendeZinsen())); |
|
91 | + $expenseTransfer->setUnitGrossPrice($this->moneyPlugin->convertDecimalToInteger((float) $quoteTransfer->getPaymentOrFail()->getEasycreditOrFail()->getAnfallendeZinsen())); |
|
92 | 92 | $expenseTransfer->setQuantity(1); |
93 | 93 | |
94 | 94 | $quoteTransfer->addExpense($expenseTransfer); |
@@ -33,6 +33,6 @@ |
||
33 | 33 | */ |
34 | 34 | public function check(SpySalesOrderItem $orderItem) |
35 | 35 | { |
36 | - return (bool)$this->getFacade()->sendOrderConfirmationRequest($orderItem->getFkSalesOrder())->getConfirmed(); |
|
36 | + return (bool) $this->getFacade()->sendOrderConfirmationRequest($orderItem->getFkSalesOrder())->getConfirmed(); |
|
37 | 37 | } |
38 | 38 | } |
@@ -69,6 +69,6 @@ |
||
69 | 69 | */ |
70 | 70 | protected function isPaymentMethodEasycredit(PaymentMethodTransfer $paymentMethodTransfer): bool |
71 | 71 | { |
72 | - return strpos((string)$paymentMethodTransfer->getMethodName(), $this->config->getPaymentMethod()) !== false; |
|
72 | + return strpos((string) $paymentMethodTransfer->getMethodName(), $this->config->getPaymentMethod()) !== false; |
|
73 | 73 | } |
74 | 74 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | { |
217 | 217 | $payload = [ |
218 | 218 | static::KEY_SHOP_KENNUNG => $this->config->getShopIdentifier(), |
219 | - static::KEY_BESTELL_WERT => $this->moneyPlugin->convertIntegerToDecimal((int)$quoteTransfer->getTotalsOrFail()->getGrandTotal()), |
|
219 | + static::KEY_BESTELL_WERT => $this->moneyPlugin->convertIntegerToDecimal((int) $quoteTransfer->getTotalsOrFail()->getGrandTotal()), |
|
220 | 220 | static::KEY_INTEGRATIONS_ART => $this->config->getPaymentPageIntegrationType(), |
221 | 221 | static::KEY_PERSONEN_DATEN => [ |
222 | 222 | static::KEY_ANREDE => static::SALUTATION_MAPPER[$quoteTransfer->getCustomerOrFail()->getSalutation()], |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | static::KEY_GEBURTS_DATUM => '', |
226 | 226 | ], |
227 | 227 | static::KEY_RECHNUNGS_ADRESSE => [ |
228 | - static::KEY_STRASSE_HAUS_NR => $quoteTransfer->getBillingAddressOrFail()->getAddress1() . $quoteTransfer->getBillingAddressOrFail()->getAddress2(), |
|
228 | + static::KEY_STRASSE_HAUS_NR => $quoteTransfer->getBillingAddressOrFail()->getAddress1().$quoteTransfer->getBillingAddressOrFail()->getAddress2(), |
|
229 | 229 | static::KEY_PLZ => $quoteTransfer->getBillingAddressOrFail()->getZipCode(), |
230 | 230 | static::KEY_ORT => $quoteTransfer->getBillingAddressOrFail()->getCity(), |
231 | 231 | static::KEY_LAND => $quoteTransfer->getBillingAddressOrFail()->getIso2Code(), |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | static::KEY_LIEFER_ADRESSE => [ |
234 | 234 | static::KEY_VORNAME => $quoteTransfer->getShippingAddressOrFail()->getFirstName(), |
235 | 235 | static::KEY_NACHNAME => $quoteTransfer->getShippingAddressOrFail()->getLastName(), |
236 | - static::KEY_STRASSE_HAUS_NR => $quoteTransfer->getShippingAddressOrFail()->getAddress1() . $quoteTransfer->getShippingAddressOrFail()->getAddress2(), |
|
236 | + static::KEY_STRASSE_HAUS_NR => $quoteTransfer->getShippingAddressOrFail()->getAddress1().$quoteTransfer->getShippingAddressOrFail()->getAddress2(), |
|
237 | 237 | static::KEY_PLZ => $quoteTransfer->getShippingAddressOrFail()->getZipCode(), |
238 | 238 | static::KEY_ORT => $quoteTransfer->getShippingAddressOrFail()->getCity(), |
239 | 239 | static::KEY_LAND => $quoteTransfer->getShippingAddressOrFail()->getIso2Code(), |