@@ -112,13 +112,13 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ($this->Request()->getPost('sCountry')) { |
| 115 | - $this->session['sCountry'] = (int)$this->Request()->getPost('sCountry'); |
|
| 115 | + $this->session['sCountry'] = (int) $this->Request()->getPost('sCountry'); |
|
| 116 | 116 | $this->session["sState"] = 0; |
| 117 | 117 | $this->session["sArea"] = Shopware()->Db()->fetchOne(" |
| 118 | 118 | SELECT areaID FROM s_core_countries WHERE id = ? |
| 119 | 119 | ", [$this->session['sCountry']]); |
| 120 | 120 | unset($this->session->KlarnaOrder); |
| 121 | - $this->session['sChangedCountry'] = (int)$this->Request()->getPost('sCountry'); |
|
| 121 | + $this->session['sChangedCountry'] = (int) $this->Request()->getPost('sCountry'); |
|
| 122 | 122 | } |
| 123 | 123 | $this->forward('index'); |
| 124 | 124 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $this->redirect(['controller' => 'payment_klarna', 'action' => 'otherPayment']); |
| 160 | 160 | return; |
| 161 | 161 | } |
| 162 | - $shopCountryId = (string)$shopCountryId; |
|
| 162 | + $shopCountryId = (string) $shopCountryId; |
|
| 163 | 163 | if ($shopCountryId != $postedCountry) { |
| 164 | 164 | $this->session['sCountry'] = $postedCountry; |
| 165 | 165 | // unset klarnaOrder so it will be created with new countryID |
@@ -314,10 +314,10 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | $this->basket['sAmountTax'] = 1.9; |
| 316 | 316 | $this->View()->sShippingcosts = $debugShipping['brutto']; |
| 317 | - $this->View()->sShippingcostsWithTax = $debugShipping['brutto']; |
|
| 317 | + $this->View()->sShippingcostsWithTax = $debugShipping['brutto']; |
|
| 318 | 318 | $this->View()->sShippingcostsNet = $debugShipping['netto']; |
| 319 | 319 | $this->View()->sShippingcostsTax = $debugShipping['tax']; |
| 320 | - $this->View()->sAmount = $this->basket['AmountWithTaxNumeric'] ; |
|
| 320 | + $this->View()->sAmount = $this->basket['AmountWithTaxNumeric']; |
|
| 321 | 321 | |
| 322 | 322 | $this->View()->sAmountNet = $this->basket['sAmountNet']; |
| 323 | 323 | $this->View()->sAmountTax = $this->basket['sAmountTax']; |
@@ -822,11 +822,11 @@ discard block |
||
| 822 | 822 | } |
| 823 | 823 | } catch (\Exception $ex) { |
| 824 | 824 | $this->plugin->klarnaLog( |
| 825 | - "ERROR while creating User. Exception information: ". $ex->getMessage(), |
|
| 825 | + "ERROR while creating User. Exception information: " . $ex->getMessage(), |
|
| 826 | 826 | 1 |
| 827 | 827 | ); |
| 828 | 828 | $this->plugin->klarnaLog( |
| 829 | - "ERROR while creating User. Exception backtrace: \n". $ex->getTraceAsString(), |
|
| 829 | + "ERROR while creating User. Exception backtrace: \n" . $ex->getTraceAsString(), |
|
| 830 | 830 | 1 |
| 831 | 831 | ); |
| 832 | 832 | if ($ex instanceof \Shopware\Components\Api\Exception\ValidationException) { |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | $details[] = $violation->__toString(); |
| 840 | 840 | } |
| 841 | 841 | $this->plugin->klarnaLog( |
| 842 | - "ERROR while creating User. Validation exception details: \n". implode("\n", $details), |
|
| 842 | + "ERROR while creating User. Validation exception details: \n" . implode("\n", $details), |
|
| 843 | 843 | 1 |
| 844 | 844 | ); |
| 845 | 845 | } |
@@ -1126,8 +1126,8 @@ discard block |
||
| 1126 | 1126 | |
| 1127 | 1127 | $update['status'] = 'created'; |
| 1128 | 1128 | $update['merchant_reference'] = [ |
| 1129 | - 'orderid1' => (string)$orderNumber, |
|
| 1130 | - 'orderid2' => (string)$order['reference'], |
|
| 1129 | + 'orderid1' => (string) $orderNumber, |
|
| 1130 | + 'orderid2' => (string) $order['reference'], |
|
| 1131 | 1131 | ]; |
| 1132 | 1132 | $order->update($update); |
| 1133 | 1133 | } |
@@ -1456,8 +1456,8 @@ discard block |
||
| 1456 | 1456 | |
| 1457 | 1457 | $update['status'] = 'created'; |
| 1458 | 1458 | $update['merchant_reference'] = [ |
| 1459 | - 'orderid1' => (string)$orderNumber, |
|
| 1460 | - 'orderid2' => (string)$order['reference'], |
|
| 1459 | + 'orderid1' => (string) $orderNumber, |
|
| 1460 | + 'orderid2' => (string) $order['reference'], |
|
| 1461 | 1461 | ]; |
| 1462 | 1462 | $order->update($update); |
| 1463 | 1463 | } |