mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix phpcs error
This commit is contained in:
parent
39ec9f14a9
commit
1092298038
1 changed files with 2 additions and 2 deletions
|
@ -175,9 +175,9 @@ trait ProcessPaymentTrait {
|
|||
if ( $this->subscription_helper->has_subscription( $order_id ) ) {
|
||||
$this->logger->info( "Checking if payment for subscription parent order #{$order_id} is saved." );
|
||||
|
||||
$tokens = $this->payment_token_repository->all_for_user_id( $wc_order->get_customer_id() );
|
||||
$tokens = $this->payment_token_repository->all_for_user_id( $wc_order->get_customer_id() );
|
||||
$current_payment_source = $this->session_handler->order()->payment_source();
|
||||
if ( $tokens && $this->payment_token_repository->tokens_contains_payment_source($tokens, $current_payment_source) ) {
|
||||
if ( $tokens && $this->payment_token_repository->tokens_contains_payment_source( $tokens, $current_payment_source ) ) {
|
||||
|
||||
$this->logger->info( "Payment for subscription parent order #{$order_id} was saved correctly." );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue