Completed
Push — master ( eccdf7...a581ed )
by Mario
03:04
created
Bootstrap.php 1 patch
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1284,7 +1284,7 @@  discard block
 block discarded – undo
1284 1284
 
1285 1285
         // just return in case kco payment is deactivated in backend
1286 1286
 
1287
-        if (!$this->isKcoPaymentActive()){
1287
+        if (!$this->isKcoPaymentActive()) {
1288 1288
             return;
1289 1289
         }
1290 1290
         $user = $view->getAssign('sUserData');
@@ -1324,7 +1324,7 @@  discard block
 block discarded – undo
1324 1324
             $view->assign('KlarnaMerchantId', $config->get('merchantId'));
1325 1325
             $view->assign('KlarnaHideCheckoutSteps', true);
1326 1326
             
1327
-            if (version_compare(Shopware::VERSION, '5.2.0', '<')){
1327
+            if (version_compare(Shopware::VERSION, '5.2.0', '<')) {
1328 1328
                 $view->assign('KlarnaSkipLoginFix', true);
1329 1329
             }
1330 1330
             if (!$this->isTemplateResponsive()) {
@@ -1444,7 +1444,7 @@  discard block
 block discarded – undo
1444 1444
             $userData['additional']
1445 1445
         );
1446 1446
         
1447
-        if (isset($session['sChangedCountry'])){
1447
+        if (isset($session['sChangedCountry'])) {
1448 1448
             
1449 1449
             /** @var \Shopware\Components\Model\ModelManager $em */
1450 1450
             $em = $this->get('models');
@@ -1540,8 +1540,7 @@  discard block
 block discarded – undo
1540 1540
             // compatibility to shopware plugin custom products
1541 1541
             if (isset($basketItem['custom_product_prices'])) {
1542 1542
                 $basketItemPrice = (double)$basketItem['custom_product_prices']['total'];
1543
-            }
1544
-            else {
1543
+            } else {
1545 1544
                 $basketItemPrice = (double)str_replace(',', '.', $basketItem['price']);
1546 1545
             }
1547 1546
             $unitPrice = round($basketItemPrice * 100);
@@ -1649,7 +1648,7 @@  discard block
 block discarded – undo
1649 1648
         }
1650 1649
 
1651 1650
         // Make sure phone number is unset if empty
1652
-        if ($address['phone'] === null){
1651
+        if ($address['phone'] === null) {
1653 1652
             unset($address['phone']);
1654 1653
         }
1655 1654
         return $address;
Please login to merge, or discard this patch.