Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1035-1040 (lines=6) @@
1032
			);
1033
		}
1034
1035
		if ( WC()->cart->needs_shipping() ) {
1036
			$items[] = array(
1037
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1038
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1039
			);
1040
		}
1041
1042
		if ( WC()->cart->has_discount() ) {
1043
			$items[] = array(
@@ 1042-1047 (lines=6) @@
1039
			);
1040
		}
1041
1042
		if ( WC()->cart->has_discount() ) {
1043
			$items[] = array(
1044
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1045
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1046
			);
1047
		}
1048
1049
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1050
			$cart_fees = WC()->cart->fees;