Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 193-199 (lines=7) @@
190
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ),
191
		);
192
193
		if ( wc_tax_enabled() ) {
194
			$items[] = array(
195
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
196
				'amount'  => 0,
197
				'pending' => true,
198
			);
199
		}
200
201
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
202
			$items[] = array(
@@ 739-745 (lines=7) @@
736
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
737
		);
738
739
		if ( wc_tax_enabled() ) {
740
			$items[] = array(
741
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
742
				'amount'  => 0,
743
				'pending' => true,
744
			);
745
		}
746
747
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
748
			$items[] = array(