1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for static analysis

This commit is contained in:
David Bomba 2023-08-15 22:47:54 +10:00
parent 16c9079583
commit d2fbf34beb
3 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ class PaymentHash extends Model
/**
* @return array
* @return mixed
*/
public function invoices()
{

View File

@ -69,7 +69,7 @@ class CheckoutWebhook implements ShouldQueue
{
$payment_object = $this->webhook_array['data'];
$payment = Payment::withTrashed()->where('transaction_reference', $payment_object['id'])->first();
$payment = Payment::query()->withTrashed()->where('transaction_reference', $payment_object['id'])->first();
if($payment && $payment->status_id == Payment::STATUS_COMPLETED)
return;
@ -84,7 +84,7 @@ class CheckoutWebhook implements ShouldQueue
$metadata = $this->webhook_array['metadata'];
$payment_hash = PaymentHash::where('hash', $metadata['udf2'])->first();
$payment_hash = PaymentHash::query()->where('hash', $metadata['udf2'])->first();
$driver = $this->company_gateway->driver($payment_hash->fee_invoice->client)->init()->setPaymentMethod();

View File

@ -22,8 +22,8 @@ return [
*/
'batch' => true,
// 'cache_connection' => 'sentinel-cache',
'cache_connection' => 'cache',
'cache_connection' => 'sentinel-cache',
// 'cache_connection' => 'cache',
/*
* The default key used to store
* metrics for batching