Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 252-258 (lines=7) @@
249
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $product->price : $product->get_price() ),
250
		);
251
252
		if ( wc_tax_enabled() ) {
253
			$items[] = array(
254
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
255
				'amount'  => 0,
256
				'pending' => true,
257
			);
258
		}
259
260
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
261
			$items[] = array(
@@ 856-862 (lines=7) @@
853
				'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
854
			);
855
856
			if ( wc_tax_enabled() ) {
857
				$items[] = array(
858
					'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
859
					'amount'  => 0,
860
					'pending' => true,
861
				);
862
			}
863
864
			if ( wc_shipping_enabled() && $product->needs_shipping() ) {
865
				$items[] = array(