Code Duplication    Length = 8-8 lines in 2 locations

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

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