Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed May 23, 2024
1 parent 0373619 commit 2d85668
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ function register_komoju_payment_method_type()
add_action(
'woocommerce_blocks_payment_method_type_registration',
function ($payment_method_registry) {
$gateways = WC()->payment_gateways()->payment_gateways();
$gateways = WC()->payment_gateways()->payment_gateways();

if ($gateways) {
foreach ($gateways as $gateway) {
if ($gateway->enabled == 'yes' && $gateway instanceof WC_Gateway_Komoju_Single_Slug) {
$payment_method_registry->register(new WC_Gateway_Komoju_Blocks($gateway));
if ($gateways) {
foreach ($gateways as $gateway) {
if ($gateway->enabled == 'yes' && $gateway instanceof WC_Gateway_Komoju_Single_Slug) {
$payment_method_registry->register(new WC_Gateway_Komoju_Blocks($gateway));
}
}
}
}
});
});
}
}
}

0 comments on commit 2d85668

Please sign in to comment.