Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 320-327 (lines=8) @@
317
318
		$payment_request_type = wc_clean( $_POST['payment_request_type'] );
319
320
		if ( 'apple_pay' === $payment_request_type ) {
321
			if ( WC_Stripe_Helper::is_pre_30() ) {
322
				update_post_meta( $order_id, '_payment_method_title', 'Apple Pay (Stripe)' );
323
			} else {
324
				$order->set_payment_method_title( 'Apple Pay (Stripe)' );
325
				$order->save();
326
			}
327
		}
328
329
		if ( 'payment_request_api' === $payment_request_type ) {
330
			if ( WC_Stripe_Helper::is_pre_30() ) {
@@ 329-336 (lines=8) @@
326
			}
327
		}
328
329
		if ( 'payment_request_api' === $payment_request_type ) {
330
			if ( WC_Stripe_Helper::is_pre_30() ) {
331
				update_post_meta( $order_id, '_payment_method_title', 'Chrome Payment Request (Stripe)' );
332
			} else {
333
				$order->set_payment_method_title( 'Chrome Payment Request (Stripe)' );
334
				$order->save();
335
			}
336
		}
337
	}
338
339
	/**