Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 369-376 (lines=8) @@
366
367
		$payment_request_type = wc_clean( $_POST['payment_request_type'] );
368
369
		if ( 'apple_pay' === $payment_request_type ) {
370
			if ( WC_Stripe_Helper::is_pre_30() ) {
371
				update_post_meta( $order_id, '_payment_method_title', 'Apple Pay (Stripe)' );
372
			} else {
373
				$order->set_payment_method_title( 'Apple Pay (Stripe)' );
374
				$order->save();
375
			}
376
		}
377
378
		if ( 'payment_request_api' === $payment_request_type ) {
379
			if ( WC_Stripe_Helper::is_pre_30() ) {
@@ 378-385 (lines=8) @@
375
			}
376
		}
377
378
		if ( 'payment_request_api' === $payment_request_type ) {
379
			if ( WC_Stripe_Helper::is_pre_30() ) {
380
				update_post_meta( $order_id, '_payment_method_title', 'Chrome Payment Request (Stripe)' );
381
			} else {
382
				$order->set_payment_method_title( 'Chrome Payment Request (Stripe)' );
383
				$order->save();
384
			}
385
		}
386
	}
387
388
	/**