Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1162-1167 (lines=6) @@
1159
			);
1160
		}
1161
1162
		if ( WC()->cart->needs_shipping() ) {
1163
			$items[] = array(
1164
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1165
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1166
			);
1167
		}
1168
1169
		if ( WC()->cart->has_discount() ) {
1170
			$items[] = array(
@@ 1169-1174 (lines=6) @@
1166
			);
1167
		}
1168
1169
		if ( WC()->cart->has_discount() ) {
1170
			$items[] = array(
1171
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1172
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1173
			);
1174
		}
1175
1176
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1177
			$cart_fees = WC()->cart->fees;