Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 24, 2023
1 parent d52ff1e commit 257ce09
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Gateway/MolliePaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
),
'<a href="' . $this->dataService->getGlobalSettingsUrl() . '">',
'</a>'
);
__(
'No API key provided. Please %1$sset you Mollie API key%2$s first.',
'mollie-payments-for-woocommerce'
),
'<a href="' . $this->dataService->getGlobalSettingsUrl() . '">',
'</a>'
);

return false;
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 257ce09

Please sign in to comment.