Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 211-217 (lines=7) @@
208
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ),
209
		);
210
211
		if ( wc_tax_enabled() ) {
212
			$items[] = array(
213
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
214
				'amount'  => 0,
215
				'pending' => true,
216
			);
217
		}
218
219
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
220
			$items[] = array(
@@ 717-723 (lines=7) @@
714
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
715
		);
716
717
		if ( wc_tax_enabled() ) {
718
			$items[] = array(
719
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
720
				'amount'  => 0,
721
				'pending' => true,
722
			);
723
		}
724
725
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
726
			$items[] = array(