From 9c32e81fd7203d1bb072ee356d057f044765fc68 Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Wed, 17 Jul 2024 19:50:05 +0200 Subject: [PATCH] Rename some variables for better readibility --- .../tasks/class-wc-calypso-task-get-paid-with-paypal.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/tasks/class-wc-calypso-task-get-paid-with-paypal.php b/includes/tasks/class-wc-calypso-task-get-paid-with-paypal.php index 7a2c5bfe..18ddfabc 100644 --- a/includes/tasks/class-wc-calypso-task-get-paid-with-paypal.php +++ b/includes/tasks/class-wc-calypso-task-get-paid-with-paypal.php @@ -50,9 +50,9 @@ public function get_content() { */ public function is_complete() { - $pp = \WooCommerce\PayPalCommerce\PPCP::container(); - $state = $pp->get('onboarding.state'); - $is_onboarded = ( $state->current_state() >= \WooCommerce\PayPalCommerce\Onboarding\State::STATE_ONBOARDED ); + $paypal_container = \WooCommerce\PayPalCommerce\PPCP::container(); + $onboarding_state = $paypal_container->get('onboarding.state'); + $is_onboarded = ( $onboarding_state->current_state() >= \WooCommerce\PayPalCommerce\Onboarding\State::STATE_ONBOARDED ); return $is_onboarded; }