Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 814-820 (lines=7) @@
811
			'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
812
		);
813
814
		if ( wc_tax_enabled() ) {
815
			$items[] = array(
816
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
817
				'amount'  => 0,
818
				'pending' => true,
819
			);
820
		}
821
822
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
823
			$items[] = array(
@@ 251-257 (lines=7) @@
248
			'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ),
249
		);
250
251
		if ( wc_tax_enabled() ) {
252
			$items[] = array(
253
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
254
				'amount'  => 0,
255
				'pending' => true,
256
			);
257
		}
258
259
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
260
			$items[] = array(