From bb706a654a382a3037a61c65468b5298ce90cc2c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 28 Mar 2024 12:24:01 +1100 Subject: [PATCH] minor fixes --- app/Http/Requests/Chart/ShowChartRequest.php | 1 + app/PaymentDrivers/BaseDriver.php | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Chart/ShowChartRequest.php b/app/Http/Requests/Chart/ShowChartRequest.php index 5af94a0651f3..3cc1283e6936 100644 --- a/app/Http/Requests/Chart/ShowChartRequest.php +++ b/app/Http/Requests/Chart/ShowChartRequest.php @@ -59,6 +59,7 @@ class ShowChartRequest extends Request } if (! isset($input['end_date'])) { + // $input['end_date'] = now()->lastOfMonth()->format('Y-m-d'); $input['end_date'] = now()->format('Y-m-d'); } diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index 7e6f6b928c09..8585510e0073 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -790,19 +790,24 @@ class BaseDriver extends AbstractPaymentDriver 'client' => $this->client->present()->name(), ]); - return sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray())); + // return sprintf('%s: %s', ctrans('texts.invoices'), \implode(', ', collect($this->payment_hash->invoices())->pluck('invoice_number')->toArray())); } /** * Stub for disconnecting from the gateway. * - * @return void + * @return bool */ public function disconnect() { return true; } + /** + * Stub for checking authentication. + * + * @return bool + */ public function auth(): bool { return true;