Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1057-1062 (lines=6) @@
1054
			);
1055
		}
1056
1057
		if ( WC()->cart->needs_shipping() ) {
1058
			$items[] = array(
1059
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1060
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1061
			);
1062
		}
1063
1064
		if ( WC()->cart->has_discount() ) {
1065
			$items[] = array(
@@ 1064-1069 (lines=6) @@
1061
			);
1062
		}
1063
1064
		if ( WC()->cart->has_discount() ) {
1065
			$items[] = array(
1066
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1067
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1068
			);
1069
		}
1070
1071
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1072
			$cart_fees = WC()->cart->fees;