mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for static analysis
This commit is contained in:
parent
16c9079583
commit
d2fbf34beb
@ -40,7 +40,7 @@ class PaymentHash extends Model
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @return mixed
|
||||
*/
|
||||
public function invoices()
|
||||
{
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user