Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1109-1114 (lines=6) @@
1106
			);
1107
		}
1108
1109
		if ( WC()->cart->needs_shipping() ) {
1110
			$items[] = array(
1111
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1112
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1113
			);
1114
		}
1115
1116
		if ( WC()->cart->has_discount() ) {
1117
			$items[] = array(
@@ 1116-1121 (lines=6) @@
1113
			);
1114
		}
1115
1116
		if ( WC()->cart->has_discount() ) {
1117
			$items[] = array(
1118
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1119
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1120
			);
1121
		}
1122
1123
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1124
			$cart_fees = WC()->cart->fees;