Code Duplication    Length = 7-7 lines in 2 locations

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

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