Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

@@ 212-216 (lines=5) @@
209
		 * @version 4.0.0
210
		 */
211
		public function get_environment_warning() {
212
			if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) {
213
				/* translators: 1) int version 2) int version */
214
				$message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
215
216
				return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() );
217
			}
218
219
			if ( ! defined( 'WC_VERSION' ) ) {
@@ 223-227 (lines=5) @@
220
				return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' );
221
			}
222
223
			if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) {
224
				/* translators: 1) int version 2) int version */
225
				$message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' );
226
227
				return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION );
228
			}
229
230
			if ( ! function_exists( 'curl_init' ) ) {