diff --git a/includes/class-depay-wc-payments-gateway.php b/includes/class-depay-wc-payments-gateway.php index 8fae149..7a562b9 100644 --- a/includes/class-depay-wc-payments-gateway.php +++ b/includes/class-depay-wc-payments-gateway.php @@ -35,19 +35,19 @@ public function get_icon() { } else { $blockchains = json_decode( get_option( 'depay_wc_blockchains' ) ); $index = 0; - $more = ""; + $more = ''; foreach ( $blockchains as $blockchain ) { - if($index < 5) { + if ($index < 5) { $url = esc_url( plugin_dir_url( __FILE__ ) . 'images/blockchains/' . $blockchain . '.svg' ); $icon = $icon . ""; } else { - $more = $more . ", " . ucfirst($blockchain); + $more = $more . ', ' . ucfirst($blockchain); } - $index += 1; + ++$index; } - if($index > 5) { + if ($index > 5) { $more = substr($more, 2); - $icon = $icon . ""; + $icon = $icon . ""; } } return $icon . '';