From 85fbc87503157bc37a3bd0ae21bd32ae4497e7b8 Mon Sep 17 00:00:00 2001 From: Ravinder Kumar Date: Sat, 19 Aug 2023 14:20:33 +0530 Subject: [PATCH] fromat: improve code formatting --- src/PaymentGateways/Gateways/ServiceProvider.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/PaymentGateways/Gateways/ServiceProvider.php b/src/PaymentGateways/Gateways/ServiceProvider.php index 9729bb7f34..90fcccb04d 100644 --- a/src/PaymentGateways/Gateways/ServiceProvider.php +++ b/src/PaymentGateways/Gateways/ServiceProvider.php @@ -49,8 +49,7 @@ public function boot() } catch (Exception $e) { Log::error('Error Registering Gateways', [ 'message' => $e->getMessage() - ] - ); + ]); } $this->enqueueGatewayScripts(); @@ -82,17 +81,17 @@ private function registerGateways() }); - add_filter("givewp_create_payment_gateway_data_" . PayPalCommerce::id(), function ($gatewayData) { + add_filter("givewp_create_payment_gateway_data_" . PayPalCommerceGateway::id(), function ($gatewayData) { $gatewayData['payPalOrderId'] = $gatewayData['payPalOrderId'] ?? give_clean($_POST['payPalOrderId']); return $gatewayData; }); - add_filter('give_recurring_modify_donation_data', function($recurringData) { + add_filter('give_recurring_modify_donation_data', function ($recurringData) { /** * PayPal Donations/Commerce (NextGen) * Optionally account for the period, frequency, and times values being passed via post data. */ - if(isset($_GET['action']) && 'give_paypal_commerce_create_plan_id' == $_GET['action']) { + if (isset($_GET['action']) && 'give_paypal_commerce_create_plan_id' == $_GET['action']) { $recurringData['period'] = $recurringData['period'] ?: $recurringData['post_data']['period']; $recurringData['frequency'] = $recurringData['frequency'] ?: $recurringData['post_data']['frequency']; $recurringData['times'] = $recurringData['times'] ?: $recurringData['post_data']['times'];