From 372e855f32571a8f2772ba52f4d332d22b9ae201 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:37:14 +0100 Subject: [PATCH] phpcbf --- src/AdminPaymentFormPostType.php | 2 +- src/Extension.php | 20 ++++++++++---------- src/PayFeed.php | 2 +- views/html-admin-feed-settings.php | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/AdminPaymentFormPostType.php b/src/AdminPaymentFormPostType.php index b049ac1..f62d825 100644 --- a/src/AdminPaymentFormPostType.php +++ b/src/AdminPaymentFormPostType.php @@ -378,7 +378,7 @@ public function save_post( $post_id ) { $delay_actions = array_filter( $delay_actions, - function( $action ) { + function ( $action ) { return $action['active']; } ); diff --git a/src/Extension.php b/src/Extension.php index 6e2e2f8..df5ebbc 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -1339,11 +1339,11 @@ public static function get_delay_actions() { 'meta_key_suffix' => 'aweber_subscription', 'delayed_payment_integration' => true, 'label' => __( 'Subscribing the user to AWeber', 'pronamic_ideal' ), - 'delay_callback' => function() { + 'delay_callback' => function () { // @link https://github.com/wp-premium/gravityformsaweber/blob/1.4.2/aweber.php#L124-L125 \remove_action( 'gform_post_submission', [ 'GFAWeber', 'export' ], 10 ); }, - 'process_callback' => function( $entry, $form ) { + 'process_callback' => function ( $entry, $form ) { if ( Core_Util::class_method_exists( 'GFAWeber', 'export' ) ) { call_user_func( [ 'GFAWeber', 'export' ], $entry, $form, false ); } @@ -1354,11 +1354,11 @@ public static function get_delay_actions() { 'meta_key_suffix' => 'campaignmonitor_subscription', 'delayed_payment_integration' => true, 'label' => __( 'Subscribing the user to Campaign Monitor', 'pronamic_ideal' ), - 'delay_callback' => function() { + 'delay_callback' => function () { // @link https://github.com/wp-premium/gravityformscampaignmonitor/blob/2.5.1/campaignmonitor.php#L124-L125 \remove_action( 'gform_after_submission', [ 'GFCampaignMonitor', 'export' ], 10 ); }, - 'process_callback' => function( $entry, $form ) { + 'process_callback' => function ( $entry, $form ) { // @link https://github.com/wp-premium/gravityformscampaignmonitor/blob/2.5.1/campaignmonitor.php#L1184 if ( Core_Util::class_method_exists( 'GFCampaignMonitor', 'export' ) ) { call_user_func( [ 'GFCampaignMonitor', 'export' ], $entry, $form, false ); @@ -1370,11 +1370,11 @@ public static function get_delay_actions() { 'meta_key_suffix' => 'mailchimp_subscription', 'delayed_payment_integration' => true, 'label' => __( 'Subscribing the user to MailChimp', 'pronamic_ideal' ), - 'delay_callback' => function() { + 'delay_callback' => function () { // @link https://github.com/wp-premium/gravityformsmailchimp/blob/2.4.1/mailchimp.php#L120-L121 \remove_action( 'gform_after_submission', [ 'GFMailChimp', 'export' ], 10 ); }, - 'process_callback' => function( $entry, $form ) { + 'process_callback' => function ( $entry, $form ) { // @link https://github.com/wp-premium/gravityformsmailchimp/blob/2.4.5/mailchimp.php#L1512. if ( Core_Util::class_method_exists( 'GFMailChimp', 'export' ) ) { call_user_func( [ 'GFMailChimp', 'export' ], $entry, $form, false ); @@ -1416,11 +1416,11 @@ public static function get_delay_actions() { 'meta_key_suffix' => 'zapier', 'delayed_payment_integration' => false, 'label' => __( 'Sending data to Zapier', 'pronamic_ideal' ), - 'delay_callback' => function() { + 'delay_callback' => function () { // @link https://github.com/wp-premium/gravityformszapier/blob/1.4.2/zapier.php#L106 remove_action( 'gform_after_submission', [ 'GFZapier', 'send_form_data_to_zapier' ], 10 ); }, - 'process_callback' => function( $entry, $form ) { + 'process_callback' => function ( $entry, $form ) { // @link https://github.com/wp-premium/gravityformszapier/blob/1.4.2/zapier.php#L469-L533. if ( Core_Util::class_method_exists( 'GFZapier', 'send_form_data_to_zapier' ) ) { call_user_func( [ 'GFZapier', 'send_form_data_to_zapier' ], $entry, $form ); @@ -1438,10 +1438,10 @@ public static function get_delay_actions() { 'meta_key_suffix' => 'gravityflow', 'delayed_payment_integration' => true, 'label' => __( 'Start the Workflow once payment has been received.', 'pronamic_ideal' ), - 'delay_callback' => function() { + 'delay_callback' => function () { // @link https://github.com/gravityflow/gravityflow/blob/master/class-gravity-flow.php#L4711-L4720 }, - 'process_callback' => function( $entry, $form ) { + 'process_callback' => function ( $entry, $form ) { // @link https://github.com/gravityflow/gravityflow/blob/master/class-gravity-flow.php#L4730-L4746 if ( ! \class_exists( '\Gravity_Flow' ) ) { return; diff --git a/src/PayFeed.php b/src/PayFeed.php index 7628ce4..3e772b5 100644 --- a/src/PayFeed.php +++ b/src/PayFeed.php @@ -231,7 +231,7 @@ public function __construct( $post_id ) { $delay_actions = array_filter( $delay_actions, - function( $action ) { + function ( $action ) { return $action['active']; } ); diff --git a/views/html-admin-feed-settings.php b/views/html-admin-feed-settings.php index e4e8647..8676eae 100644 --- a/views/html-admin-feed-settings.php +++ b/views/html-admin-feed-settings.php @@ -289,7 +289,7 @@ function _pronamic_pay_gravityforms_dropdown_input( $form, $args ) { $notifications = \array_filter( $notifications, - function( $notification ) { + function ( $notification ) { return 'form_submission' === $notification['event']; } ); @@ -362,7 +362,7 @@ function( $notification ) { $delay_actions = array_filter( $delay_actions, - function( $action ) { + function ( $action ) { return $action['active']; } );