From 6ebffad67ba93b05b36d539d2f69e4840e6b26a0 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sat, 23 Nov 2024 00:37:55 +0500 Subject: [PATCH] wip --- .../Nova/Resources/NovaVisaMasterPaymentOrderItem.php | 3 ++- app/Nova/Actions/CheckOnlinePayment.php | 4 ++-- phpstan.neon | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php index 800319f..fb1b5a3 100644 --- a/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php +++ b/app/Modules/VisaMasterPaymentOrder/Nova/Resources/NovaVisaMasterPaymentOrderItem.php @@ -5,6 +5,7 @@ namespace App\Modules\VisaMasterPaymentOrder\Nova\Resources; use App\Models\Branch\Branch; use App\Models\Payment\OnlinePaymentHistory; use App\Modules\VisaMasterPaymentOrder\Nova\Resources\Item\NovaVisaMasterPaymentOrderItemAuth; +use App\Nova\Actions\CheckOnlinePayment; use App\Nova\Resource; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; @@ -159,7 +160,7 @@ class NovaVisaMasterPaymentOrderItem extends Resource return Action::modal('modal-response', [ 'title' => 'HALKBANK API', - 'html' => $this->resultHTML($response), + 'html' => CheckOnlinePayment::resultHTML($response), ]); })->icon('server') ->sole(), diff --git a/app/Nova/Actions/CheckOnlinePayment.php b/app/Nova/Actions/CheckOnlinePayment.php index 973ed9f..a3389ec 100644 --- a/app/Nova/Actions/CheckOnlinePayment.php +++ b/app/Nova/Actions/CheckOnlinePayment.php @@ -67,7 +67,7 @@ class CheckOnlinePayment extends Action return Action::modal('modal-response', [ 'title' => 'HALKBANK API', - 'html' => $this->resultHTML($response), + 'html' => self::resultHTML($response), ]); } @@ -87,7 +87,7 @@ class CheckOnlinePayment extends Action * * @param $response */ - public function resultHTML($response) + public static function resultHTML($response) { $errorMessage = $response['ErrorMessage']; diff --git a/phpstan.neon b/phpstan.neon index 47fe8bf..e064ac4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,7 +7,7 @@ parameters: - app/ # Level 9 is the highest level - level: 5 + level: 9 # ignoreErrors: # - '#PHPDoc tag @var#'