Completed
Push — master ( 0fb93d...9180ee )
by Martin
20:19
created
app/PaymentProvider/Klarna.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 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
Please login to merge, or discard this patch.
app/Http/Controllers/TicketShop/PaymentProviderController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
65 65
             $returnable->with('status', $e->getMessage());
66 66
             Log::warning($e);
67 67
         } catch (PayPalConnectionException $e) {
68
-            Log::warning('[PayPal] [paymentId='. $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage());
68
+            Log::warning('[PayPal] [paymentId=' . $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage());
69 69
             // This will print the detailed information on the exception.
70 70
             //REALLY HELPFUL FOR DEBUGGING
71 71
             Log::error($e->getData());
72 72
         } catch (\Exception $e) {
73
-            Log::warning('[General] [paymentId='. $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage());
73
+            Log::warning('[General] [paymentId=' . $paymentId . '|payerId=' . $payerId . '] ' . $e->getMessage());
74 74
         }
75 75
         return $returnable;
76 76
     }
Please login to merge, or discard this patch.
app/Http/Requests/PayTickets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
     public function rules()
25 25
     {
26 26
         $filter = 'in:';
27
-        if(env('KLARNA_CONFIG_KEY')) {
27
+        if (env('KLARNA_CONFIG_KEY')) {
28 28
             $filter .= 'Klarna,';
29 29
         }
30
-        if(env('PAYPAL_CLIENT_SECRET')) {
30
+        if (env('PAYPAL_CLIENT_SECRET')) {
31 31
             $filter .= 'PayPal,';
32 32
         }
33 33
         return [
Please login to merge, or discard this patch.