Passed
Push — master ( 2857a9...26ff0f )
by Darko
06:16
created
app/Http/Controllers/BtcPaymentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         if ($payload['type'] === 'InvoiceSettled') {
59 59
             // Check if we have the invoice_id in payments table and if we do, update the user account
60
-            $checkOrder = Payment::query()->where('invoice_id', '=', $payload['invoiceId'])->where('payment_status', '=', 'Settled')->where(function ($query) {
60
+            $checkOrder = Payment::query()->where('invoice_id', '=', $payload['invoiceId'])->where('payment_status', '=', 'Settled')->where(function($query) {
61 61
                 return $query->where('invoice_status', 'Pending')->orWhereNull('invoice_status');
62 62
             })->first();
63 63
             if ($checkOrder !== null) {
Please login to merge, or discard this patch.