Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 154-157 (lines=4) @@
151
			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>';
152
			return;
153
154
		} elseif ( ! $this->publishable_key ) {
155
			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>';
156
			return;
157
		}
158
159
		// Simple check for duplicate keys
160
		if ( $this->secret_key == $this->publishable_key ) {
@@ 160-163 (lines=4) @@
157
		}
158
159
		// Simple check for duplicate keys
160
		if ( $this->secret_key == $this->publishable_key ) {
161
			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>';
162
			return;
163
		}
164
165
		// Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected
166
		if ( ( function_exists( 'wc_site_is_https' ) && ! wc_site_is_https() ) && ( 'no' === get_option( 'woocommerce_force_ssl_checkout' ) && ! class_exists( 'WordPressHTTPS' ) ) ) {