Code Duplication    Length = 5-5 lines in 2 locations

woocommerce-gateway-stripe.php 2 locations

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