Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1256-1261 (lines=6) @@
1253
			);
1254
		}
1255
1256
		if ( WC()->cart->needs_shipping() ) {
1257
			$items[] = array(
1258
				'label'  => esc_html( __( 'Shipping', 'woocommerce-gateway-stripe' ) ),
1259
				'amount' => WC_Stripe_Helper::get_stripe_amount( $shipping ),
1260
			);
1261
		}
1262
1263
		if ( WC()->cart->has_discount() ) {
1264
			$items[] = array(
@@ 1263-1268 (lines=6) @@
1260
			);
1261
		}
1262
1263
		if ( WC()->cart->has_discount() ) {
1264
			$items[] = array(
1265
				'label'  => esc_html( __( 'Discount', 'woocommerce-gateway-stripe' ) ),
1266
				'amount' => WC_Stripe_Helper::get_stripe_amount( $discounts ),
1267
			);
1268
		}
1269
1270
		if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
1271
			$cart_fees = WC()->cart->fees;