Passed
Push — master ( 3bdcf1...9693b9 )
by Martin
06:08
created
app/PaymentProvider/Klarna.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $this->sofortApi->setAmount($purchase->total());
42 42
         $this->sofortApi->setCurrencyCode('EUR');
43
-        $this->sofortApi->setReason('#'.$purchase->id . ' Purchase');
43
+        $this->sofortApi->setReason('#' . $purchase->id . ' Purchase');
44 44
         $this->sofortApi->setSuccessUrl(route('ts.payment.successful', [
45 45
             'purchase' => $purchase->random_id,
46 46
             'secret' => $purchase->payment_secret
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         if ($this->sofortApi->isError()) {
54 54
             // SOFORT-API didn't accept the data
55
-            foreach($this->sofortApi->getErrors() as $error) {
55
+            foreach ($this->sofortApi->getErrors() as $error) {
56 56
                 Log::error($error);
57 57
             }
58 58
             throw new PaymentProviderException("SOFORT got errors...");
Please login to merge, or discard this patch.