@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | public function showIframeAction() |
| 131 | 131 | { |
| 132 | 132 | $this->basket = $this->get('modules')->Basket()->sGetBasket(); |
| 133 | - $preFill = $this->config['preFillCheckout']; |
|
| 133 | + $preFill = $this->config['preFillCheckout']; |
|
| 134 | 134 | if ($this->isUserLoggedIn()) { |
| 135 | 135 | $user = Shopware()->Modules()->Admin()->sGetUserData(); |
| 136 | 136 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | |
| 290 | 290 | // Klarna Prefill checkBox |
| 291 | 291 | if ($this->isUserLoggedIn()) { |
| 292 | - $this->View()->assign('KlarnaPreFillSelect', !$this->session['klarnaPreFill']); |
|
| 292 | + $this->View()->assign('KlarnaPreFillSelect', !$this->session['klarnaPreFill']); |
|
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | // Iframe Backend Config |
@@ -703,8 +703,8 @@ discard block |
||
| 703 | 703 | } |
| 704 | 704 | $module->sSYSTEM->_POST = $data['billing']; |
| 705 | 705 | if ($this->plugin->isShopwareVersionNew()) { |
| 706 | - $userId = $session->offsetGet('sUserId'); |
|
| 707 | - $this->updateBilling($userId, $data['billing']); |
|
| 706 | + $userId = $session->offsetGet('sUserId'); |
|
| 707 | + $this->updateBilling($userId, $data['billing']); |
|
| 708 | 708 | } else { |
| 709 | 709 | $module->sUpdateBilling(); |
| 710 | 710 | } |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | $plainbilling['birthday'] = null; |
| 823 | 823 | } else { |
| 824 | 824 | $plainbilling['birthday'] = new \DateTime( |
| 825 | - $plainbilling['birthyear'] . '-' . |
|
| 825 | + $plainbilling['birthyear'] . '-' . |
|
| 826 | 826 | $plainbilling['birthmonth'] . '-' . |
| 827 | 827 | $plainbilling['birthday']); |
| 828 | 828 | } |
@@ -893,12 +893,12 @@ discard block |
||
| 893 | 893 | } |
| 894 | 894 | |
| 895 | 895 | |
| 896 | - /** |
|
| 897 | - * Updates the shipping address |
|
| 898 | - * |
|
| 899 | - * @param int $userId |
|
| 900 | - * @param array $shippingData |
|
| 901 | - */ |
|
| 896 | + /** |
|
| 897 | + * Updates the shipping address |
|
| 898 | + * |
|
| 899 | + * @param int $userId |
|
| 900 | + * @param array $shippingData |
|
| 901 | + */ |
|
| 902 | 902 | private function updateShipping($userId, $shippingData) |
| 903 | 903 | { |
| 904 | 904 | /** @var \Shopware\Components\Model\ModelManager $em */ |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | $addressold = $customer->getDefaultShippingAddress(); |
| 912 | 912 | $address = new \Shopware\Models\Customer\Address(); |
| 913 | 913 | |
| 914 | - /** @var \Shopware\Models\Country\Country $country */ |
|
| 914 | + /** @var \Shopware\Models\Country\Country $country */ |
|
| 915 | 915 | $country = $addressold->getCountry(); |
| 916 | 916 | $shippingData['country'] = $country; |
| 917 | 917 | if ($shippingData['phone'] === null) { |
@@ -947,7 +947,7 @@ discard block |
||
| 947 | 947 | /** @var \Shopware\Models\Customer\Address $address */ |
| 948 | 948 | $address = $customer->getDefaultBillingAddress(); |
| 949 | 949 | |
| 950 | - /** @var \Shopware\Models\Country\Country $country */ |
|
| 950 | + /** @var \Shopware\Models\Country\Country $country */ |
|
| 951 | 951 | $country = $address->getCountry(); |
| 952 | 952 | $billingData['country'] = $country; |
| 953 | 953 | $address->fromArray($billingData); |
@@ -1522,7 +1522,7 @@ discard block |
||
| 1522 | 1522 | */ |
| 1523 | 1523 | protected function isUserLoggedIn() |
| 1524 | 1524 | { |
| 1525 | - return (isset($this->session->sUserId) && !empty($this->session->sUserId)); |
|
| 1525 | + return (isset($this->session->sUserId) && !empty($this->session->sUserId)); |
|
| 1526 | 1526 | } |
| 1527 | 1527 | |
| 1528 | 1528 | /** |