Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

@@ 183-187 (lines=5) @@
180
		 * found or false if the environment has no problems.
181
		 */
182
		static function get_environment_warning() {
183
			if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) {
184
				$message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
185
186
				return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() );
187
			}
188
189
			if ( ! defined( 'WC_VERSION' ) ) {
190
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
@@ 193-197 (lines=5) @@
190
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
191
			}
192
193
			if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) {
194
				$message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
195
196
				return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION );
197
			}
198
199
			if ( ! function_exists( 'curl_init' ) ) {
200
				return __( 'WooCommerce Stripe - cURL is not installed.', 'woocommerce-gateway-stripe' );