Fix phpcs error

This commit is contained in:
dinamiko 2021-12-14 15:10:33 +01:00
parent 39ec9f14a9
commit 1092298038

View file

@ -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." );