Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-gateway-stripe.php 1 location

@@ 397-399 (lines=3) @@
394
		}
395
396
		// Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected.
397
		if ( ( function_exists( 'wc_site_is_https' ) && ! wc_site_is_https() ) && ( 'no' === get_option( 'woocommerce_force_ssl_checkout' ) && ! class_exists( 'WordPressHTTPS' ) ) ) {
398
			echo '<div class="error stripe-ssl-message"><p>' . sprintf( __( 'Stripe is enabled, but the <a href="%s">force SSL option</a> is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Stripe will only work in test mode.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ) . '</p></div>';
399
		}
400
	}
401
402
	/**

includes/legacy/class-wc-gateway-stripe.php 1 location

@@ 166-168 (lines=3) @@
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' ) ) ) {
167
			echo '<div class="error"><p>' . sprintf( __( 'Stripe is enabled, but the <a href="%s">force SSL option</a> is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Stripe will only work in test mode.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ) . '</p></div>';
168
		}
169
	}
170
171
	/**