Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 209-215 (lines=7) @@
206
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ),
207
		);
208
209
		if ( wc_tax_enabled() ) {
210
			$items[] = array(
211
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
212
				'amount'  => 0,
213
				'pending' => true,
214
			);
215
		}
216
217
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
218
			$items[] = array(
@@ 743-749 (lines=7) @@
740
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
741
		);
742
743
		if ( wc_tax_enabled() ) {
744
			$items[] = array(
745
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
746
				'amount'  => 0,
747
				'pending' => true,
748
			);
749
		}
750
751
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
752
			$items[] = array(