Code Duplication    Length = 8-8 lines in 2 locations

includes/payment-methods/class-wc-stripe-payment-request.php 2 locations

@@ 293-300 (lines=8) @@
290
291
		$payment_request_type = wc_clean( $_POST['payment_request_type'] );
292
293
		if ( 'apple_pay' === $payment_request_type ) {
294
			if ( WC_Stripe_Helper::is_pre_30() ) {
295
				update_post_meta( $order_id, '_payment_method_title', 'Apple Pay (Stripe)' );
296
			} else {
297
				$order->set_payment_method_title( 'Apple Pay (Stripe)' );
298
				$order->save();
299
			}
300
		}
301
302
		if ( 'payment_request_api' === $payment_request_type ) {
303
			if ( WC_Stripe_Helper::is_pre_30() ) {
@@ 302-309 (lines=8) @@
299
			}
300
		}
301
302
		if ( 'payment_request_api' === $payment_request_type ) {
303
			if ( WC_Stripe_Helper::is_pre_30() ) {
304
				update_post_meta( $order_id, '_payment_method_title', 'Chrome Payment Request (Stripe)' );
305
			} else {
306
				$order->set_payment_method_title( 'Chrome Payment Request (Stripe)' );
307
				$order->save();
308
			}
309
		}
310
	}
311
312
	/**