Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

@@ 285-289 (lines=5) @@
282
		 * found or false if the environment has no problems.
283
		 */
284
		static function get_environment_warning() {
285
			if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) {
286
				$message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
287
288
				return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() );
289
			}
290
291
			if ( ! defined( 'WC_VERSION' ) ) {
292
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
@@ 295-299 (lines=5) @@
292
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
293
			}
294
295
			if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) {
296
				$message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
297
298
				return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION );
299
			}
300
301
			if ( ! function_exists( 'curl_init' ) ) {
302
				return __( 'WooCommerce Stripe - cURL is not installed.', 'woocommerce-gateway-stripe' );