Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

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