From a5317ff09388567bc47fde1854c387d161a118c8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 7 Sep 2024 15:17:36 +1000 Subject: [PATCH] Remove redundant code path --- app/Http/Controllers/ClientPortal/PaymentController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Http/Controllers/ClientPortal/PaymentController.php b/app/Http/Controllers/ClientPortal/PaymentController.php index 949927af314d..0c119a58bff1 100644 --- a/app/Http/Controllers/ClientPortal/PaymentController.php +++ b/app/Http/Controllers/ClientPortal/PaymentController.php @@ -117,13 +117,7 @@ class PaymentController extends Controller $gateway = CompanyGateway::findOrFail($request->input('company_gateway_id')); $payment_hash = PaymentHash::with('fee_invoice')->where('hash', $request->payment_hash)->firstOrFail(); - // if($payment_hash) $invoice = $payment_hash->fee_invoice; - // else - // $invoice = Invoice::with('client')->where('id',$payment_hash->fee_invoice_id)->orderBy('id','desc')->first(); - - // $invoice = Invoice::with('client')->find($payment_hash->fee_invoice_id); - $client = $invoice ? $invoice->client : auth()->guard('contact')->user()->client;