Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1121-1126 (lines=6) @@
1118
			);
1119
		}
1120
1121
		if ( WC()->cart->needs_shipping() ) {
1122
			$items[] = array(
1123
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1124
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1125
			);
1126
		}
1127
1128
		if ( WC()->cart->has_discount() ) {
1129
			$items[] = array(
@@ 1128-1133 (lines=6) @@
1125
			);
1126
		}
1127
1128
		if ( WC()->cart->has_discount() ) {
1129
			$items[] = array(
1130
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1131
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1132
			);
1133
		}
1134
1135
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1136
			$cart_fees = WC()->cart->fees;