@@ -388,8 +388,7 @@ discard block |
||
| 388 | 388 | 'sAdmin::saveRegisterAction::before', |
| 389 | 389 | 'onBeforeRegister' |
| 390 | 390 | ); |
| 391 | - } |
|
| 392 | - else { |
|
| 391 | + } else { |
|
| 393 | 392 | $this->subscribeEvent( |
| 394 | 393 | 'sAdmin::sSaveRegister::before', |
| 395 | 394 | 'onBeforeRegister' |
@@ -683,10 +682,11 @@ discard block |
||
| 683 | 682 | $index++; |
| 684 | 683 | if ($index == count($addressParts) || $houseNumberFound) { |
| 685 | 684 | // at least last element should be streetnr |
| 686 | - if (!empty($streetnr)) $streetnr .= ' '; |
|
| 685 | + if (!empty($streetnr)) { |
|
| 686 | + $streetnr .= ' '; |
|
| 687 | + } |
|
| 687 | 688 | $streetnr .= (string)$addressPart; |
| 688 | - } |
|
| 689 | - else { |
|
| 689 | + } else { |
|
| 690 | 690 | $street .= (string)' '.$addressPart; |
| 691 | 691 | } |
| 692 | 692 | } |
@@ -1616,8 +1616,7 @@ discard block |
||
| 1616 | 1616 | $session['klarnaPreFill'] = true; |
| 1617 | 1617 | if (empty($session['sCountry'])) { |
| 1618 | 1618 | $countryId = $this->getCountryByShop($shop); |
| 1619 | - } |
|
| 1620 | - else { |
|
| 1619 | + } else { |
|
| 1621 | 1620 | $countryId = $session['sCountry']; |
| 1622 | 1621 | } |
| 1623 | 1622 | if ($user['additional']['countryShipping']['id'] == $countryId |
@@ -1952,8 +1951,7 @@ discard block |
||
| 1952 | 1951 | // compatibility to shopware plugin custom products |
| 1953 | 1952 | if (isset($basketItem['custom_product_prices'])) { |
| 1954 | 1953 | $basketItemPrice = (double)$basketItem['custom_product_prices']['total']; |
| 1955 | - } |
|
| 1956 | - else { |
|
| 1954 | + } else { |
|
| 1957 | 1955 | $basketItemPrice = (double)str_replace(',', '.', $basketItem['price']); |
| 1958 | 1956 | } |
| 1959 | 1957 | $unitPrice = round($basketItemPrice * 100); |