@@ -220,8 +220,7 @@ |
||
| 220 | 220 | $this->session['klarnaPreFill'] = true; |
| 221 | 221 | if (empty($session['sCountry'])) { |
| 222 | 222 | $countryId = $this->getCountryByShop($shop); |
| 223 | - } |
|
| 224 | - else { |
|
| 223 | + } else { |
|
| 225 | 224 | $countryId = $session['sCountry']; |
| 226 | 225 | } |
| 227 | 226 | if ($user ['additional']['countryShipping']['id'] == $countryId |
@@ -597,10 +597,11 @@ discard block |
||
| 597 | 597 | $index++; |
| 598 | 598 | if ($index == count($addressParts) || $houseNumberFound) { |
| 599 | 599 | // at least last element should be streetnr |
| 600 | - if (!empty($streetnr)) $streetnr .= ' '; |
|
| 600 | + if (!empty($streetnr)) { |
|
| 601 | + $streetnr .= ' '; |
|
| 602 | + } |
|
| 601 | 603 | $streetnr .= (string)$addressPart; |
| 602 | - } |
|
| 603 | - else { |
|
| 604 | + } else { |
|
| 604 | 605 | $street .= (string)' '.$addressPart; |
| 605 | 606 | } |
| 606 | 607 | } |
@@ -1545,8 +1546,7 @@ discard block |
||
| 1545 | 1546 | // compatibility to shopware plugin custom products |
| 1546 | 1547 | if (isset($basketItem['custom_product_prices'])) { |
| 1547 | 1548 | $basketItemPrice = (double)$basketItem['custom_product_prices']['total']; |
| 1548 | - } |
|
| 1549 | - else { |
|
| 1549 | + } else { |
|
| 1550 | 1550 | $basketItemPrice = (double)str_replace(',', '.', $basketItem['price']); |
| 1551 | 1551 | } |
| 1552 | 1552 | $unitPrice = round($basketItemPrice * 100); |