Passed
Push — master ( 98c61b...80c098 )
by Mario
04:44
created
Controllers/Frontend/PaymentKlarna.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -220,8 +220,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Bootstrap.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -597,10 +597,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.