Skip to content

Commit 0003cf3

Browse files
committed
Linting fix
1 parent 716dd26 commit 0003cf3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

includes/compat/subscriptions/trait-wc-payment-gateway-wcpay-subscriptions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -657,15 +657,15 @@ public function maybe_hide_change_payment_for_manual_subscriptions( $actions, $s
657657
/**
658658
* Hide "Auto renew" toggle for manual subscriptions with non-reusable payment methods.
659659
*
660-
* @param array $allcaps List of user capabilities
661-
* @param array $caps Which capabilities are being checked.
662-
* @param array $args Arguments, in our case user ID and subscription ID.
663-
* @return array
660+
* @param array $allcaps List of user capabilities.
661+
* @param array $caps Which capabilities are being checked.
662+
* @param array $args Arguments, in our case user ID and subscription ID.
663+
* @return array
664664
*/
665665
public function maybe_hide_auto_renew_toggle_for_manual_subscriptions( $allcaps, $caps, $args ) {
666666
if ( ! isset( $caps[0] ) || 'toggle_shop_subscription_auto_renewal' !== $caps[0] ) {
667667
// Do not interfere with other capabilities.
668-
return;
668+
return $allcaps;
669669
}
670670

671671
$subscription = wcs_get_subscription( $args[2] );

0 commit comments

Comments
 (0)