Code Duplication    Length = 8-8 lines in 2 locations

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

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