Completed
Push — master ( a02e38...aba6fe )
by Stefan
02:37
created
Controllers/Backend/PaymentKlarna.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -407,8 +407,8 @@  discard block
 block discarded – undo
407 407
                         'quantity' => $positionData['quantity']
408 408
                     ]);
409 409
                     $newPositions[] = $position;
410
-                    $orderAmount =  $orderAmount + ($positionData['price'] * $positionData['quantity']);
411
-                    $orderAmountNet = $orderAmountNet + ($positionData['price'] / (1+ (0.01 * $positionData['taxRate'] * $positionData['quantity'])));
410
+                    $orderAmount = $orderAmount + ($positionData['price'] * $positionData['quantity']);
411
+                    $orderAmountNet = $orderAmountNet + ($positionData['price'] / (1 + (0.01 * $positionData['taxRate'] * $positionData['quantity'])));
412 412
                 }
413 413
                 $order->setDetails($newPositions);
414 414
             }
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
         $orderId = $this->Request()->getParam('orderId');
455 455
         $this->registerShopByOrderId($orderId);
456 456
         $order = $this->getOrderById($orderId);
457
-        $value = (float)str_replace(',', '.', $this->Request()->getParam('value'));
457
+        $value = (float) str_replace(',', '.', $this->Request()->getParam('value'));
458 458
         $service = $this->getService($order);
459 459
 
460 460
         /** @noinspection PhpUndefinedMethodInspection */
Please login to merge, or discard this patch.