Code Duplication    Length = 4-4 lines in 2 locations

includes/legacy/class-wc-gateway-stripe.php 2 locations

@@ 152-155 (lines=4) @@
149
			echo '<div class="error"><p>' . sprintf( __( 'Stripe error: Please enter your secret key <a href="%s">here</a>', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_gateway_stripe' . $addons ) ) . '</p></div>';
150
			return;
151
152
		} elseif ( ! $this->publishable_key ) {
153
			echo '<div class="error"><p>' . sprintf( __( 'Stripe error: Please enter your publishable key <a href="%s">here</a>', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_gateway_stripe' . $addons ) ) . '</p></div>';
154
			return;
155
		}
156
157
		// Simple check for duplicate keys
158
		if ( $this->secret_key == $this->publishable_key ) {
@@ 158-161 (lines=4) @@
155
		}
156
157
		// Simple check for duplicate keys
158
		if ( $this->secret_key == $this->publishable_key ) {
159
			echo '<div class="error"><p>' . sprintf( __( 'Stripe error: Your secret and publishable keys match. Please check and re-enter.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wc_gateway_stripe' . $addons ) ) . '</p></div>';
160
			return;
161
		}
162
163
		// Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected
164
		if ( ( function_exists( 'wc_site_is_https' ) && ! wc_site_is_https() ) && ( 'no' === get_option( 'woocommerce_force_ssl_checkout' ) && ! class_exists( 'WordPressHTTPS' ) ) ) {