Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

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