diff --git a/modules/ppcp-onboarding/src/Endpoint/UpdateSignupLinksEndpoint.php b/modules/ppcp-onboarding/src/Endpoint/UpdateSignupLinksEndpoint.php index d7487424a..f26e6dc13 100644 --- a/modules/ppcp-onboarding/src/Endpoint/UpdateSignupLinksEndpoint.php +++ b/modules/ppcp-onboarding/src/Endpoint/UpdateSignupLinksEndpoint.php @@ -121,11 +121,14 @@ class UpdateSignupLinksEndpoint implements EndpointInterface { $data = $this->request_data->read_request( $this->nonce() ); foreach ( $data['settings'] ?? array() as $field => $value ) { - $option = apply_filters( 'ppcp_partner_referrals_option', array( - 'field' => $field, - 'value' => $value, - 'valid' => false, - ) ); + $option = apply_filters( + 'ppcp_partner_referrals_option', + array( + 'field' => $field, + 'value' => $value, + 'valid' => false, + ) + ); if ( $option['valid'] ) { $this->settings->set( $field, $value ); diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 8266d70e7..267c5822d 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -200,7 +200,7 @@ return array( return $ppcp_tab ? $ppcp_tab : $section; }, - 'wcgateway.settings' => SingletonDecorator::make( + 'wcgateway.settings' => SingletonDecorator::make( static function ( ContainerInterface $container ): Settings { $default_button_locations = $container->get( 'wcgateway.button.default-locations' ); return new Settings( $default_button_locations );