Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 957-963 (lines=7) @@
954
				'amount' => WC_Stripe_Helper::get_stripe_amount( $total ),
955
			);
956
957
			if ( wc_tax_enabled() ) {
958
				$items[] = array(
959
					'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
960
					'amount'  => 0,
961
					'pending' => true,
962
				);
963
			}
964
965
			if ( wc_shipping_enabled() && $product->needs_shipping() ) {
966
				$items[] = array(
@@ 301-307 (lines=7) @@
298
			'amount' => WC_Stripe_Helper::get_stripe_amount( $product->get_price() ),
299
		);
300
301
		if ( wc_tax_enabled() ) {
302
			$items[] = array(
303
				'label'   => __( 'Tax', 'woocommerce-gateway-stripe' ),
304
				'amount'  => 0,
305
				'pending' => true,
306
			);
307
		}
308
309
		if ( wc_shipping_enabled() && $product->needs_shipping() ) {
310
			$items[] = array(