From a16ad7fef5ef75caef7c014e4acb806f14396fcc Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 20 Feb 2025 13:38:35 +0400 Subject: [PATCH] improve the wording. --- .../SubscriptionSettingsMapHelper.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/ppcp-compat/src/Settings/SubscriptionSettingsMapHelper.php b/modules/ppcp-compat/src/Settings/SubscriptionSettingsMapHelper.php index d9f643089..9478172e0 100644 --- a/modules/ppcp-compat/src/Settings/SubscriptionSettingsMapHelper.php +++ b/modules/ppcp-compat/src/Settings/SubscriptionSettingsMapHelper.php @@ -1,6 +1,6 @@ */ @@ -58,12 +58,12 @@ class SubscriptionSettingsMapHelper { } /** - * Retrieves the value of a mapped subscriptions_mode key from the new settings. + * Retrieves the mapped value for the subscriptions_mode key from the new settings. * * @param string $old_key The key from the legacy settings. * @param array $settings_model The new settings model data as an array. * - * @return 'vaulting_api'|'subscriptions_api'|'disable_paypal_subscriptions'|null The value of the mapped subscriptions_mode setting (null if not found). + * @return 'vaulting_api'|'subscriptions_api'|'disable_paypal_subscriptions'|null The mapped subscriptions_mode value, or null if not applicable. */ public function mapped_value( string $old_key, array $settings_model ): ?string { if ( $old_key !== 'subscriptions_mode' || ! $this->subscription_helper->plugin_is_active() ) { @@ -74,9 +74,9 @@ class SubscriptionSettingsMapHelper { $subscription_mode_value = $vaulting ? self::OLD_SETTINGS_SUBSCRIPTION_MODE_VALUE_VAULTING : self::OLD_SETTINGS_SUBSCRIPTION_MODE_VALUE_SUBSCRIPTIONS; /** - * Allows to disable the subscription mode when using the new settings UI. + * Allows disabling the subscription mode when using the new settings UI. * - * @returns bool true if the subscription mode should be disabled, otherwise false (also by default). + * @returns bool true if the subscription mode should be disabled, false otherwise (default is false). */ $subscription_mode_disabled = (bool) apply_filters( 'woocommerce_paypal_payments_subscription_mode_disabled', false );