Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 214-220 (lines=7) @@
211
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ),
212
		);
213
214
		if ( wc_tax_enabled() ) {
215
			$items[] = array(
216
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
217
				'amount'  => 0,
218
				'pending' => true,
219
			);
220
		}
221
222
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
223
			$items[] = array(
@@ 761-767 (lines=7) @@
758
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
759
		);
760
761
		if ( wc_tax_enabled() ) {
762
			$items[] = array(
763
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
764
				'amount'  => 0,
765
				'pending' => true,
766
			);
767
		}
768
769
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
770
			$items[] = array(