From 257ce096734f136be41202351daac430521e7d81 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 24 Oct 2023 11:07:40 +0200 Subject: [PATCH] Fix CS --- src/Gateway/MolliePaymentGateway.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Gateway/MolliePaymentGateway.php b/src/Gateway/MolliePaymentGateway.php index d45d98e9..7cf669eb 100644 --- a/src/Gateway/MolliePaymentGateway.php +++ b/src/Gateway/MolliePaymentGateway.php @@ -274,17 +274,17 @@ public function isValidForUse(): bool $test_mode = $this->dataService->isTestModeEnabled(); $this->errors[] = ($test_mode ? __( - 'Test mode enabled.', - 'mollie-payments-for-woocommerce' - ) . ' ' : '') . sprintf( + 'Test mode enabled.', + 'mollie-payments-for-woocommerce' + ) . ' ' : '') . sprintf( /* translators: The surrounding %s's Will be replaced by a link to the global setting page */ - __( - 'No API key provided. Please %1$sset you Mollie API key%2$s first.', - 'mollie-payments-for-woocommerce' - ), - '', - '' - ); + __( + 'No API key provided. Please %1$sset you Mollie API key%2$s first.', + 'mollie-payments-for-woocommerce' + ), + '', + '' + ); return false; } @@ -813,7 +813,9 @@ public function displayInstructions( $admin_instructions = false, $plain_text = false ) { - if (($admin_instructions && !$this::$alreadyDisplayedAdminInstructions) + + if ( + ($admin_instructions && !$this::$alreadyDisplayedAdminInstructions) || (!$admin_instructions && !$this::$alreadyDisplayedCustomerInstructions) ) { $order_payment_method = $order->get_payment_method();