Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1046-1051 (lines=6) @@
1043
			);
1044
		}
1045
1046
		if ( WC()->cart->needs_shipping() ) {
1047
			$items[] = array(
1048
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1049
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1050
			);
1051
		}
1052
1053
		if ( WC()->cart->has_discount() ) {
1054
			$items[] = array(
@@ 1053-1058 (lines=6) @@
1050
			);
1051
		}
1052
1053
		if ( WC()->cart->has_discount() ) {
1054
			$items[] = array(
1055
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1056
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1057
			);
1058
		}
1059
1060
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1061
			$cart_fees = WC()->cart->fees;