Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

@@ 239-243 (lines=5) @@
236
		 * found or false if the environment has no problems.
237
		 */
238
		static function get_environment_warning() {
239
			if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) {
240
				$message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
241
242
				return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() );
243
			}
244
245
			if ( ! defined( 'WC_VERSION' ) ) {
246
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
@@ 249-253 (lines=5) @@
246
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
247
			}
248
249
			if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) {
250
				$message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
251
252
				return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION );
253
			}
254
255
			if ( ! function_exists( 'curl_init' ) ) {
256
				return __( 'WooCommerce Stripe - cURL is not installed.', 'woocommerce-gateway-stripe' );