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(
@@ 750-756 (lines=7) @@
747
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
748
		);
749
750
		if ( wc_tax_enabled() ) {
751
			$items[] = array(
752
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
753
				'amount'  => 0,
754
				'pending' => true,
755
			);
756
		}
757
758
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
759
			$items[] = array(