Skip to content

Commit

Permalink
Rename some variables for better readibility
Browse files Browse the repository at this point in the history
  • Loading branch information
epeicher committed Jul 17, 2024
1 parent 0dd0d01 commit 9c32e81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/tasks/class-wc-calypso-task-get-paid-with-paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9c32e81

Please sign in to comment.