Code Duplication    Length = 5-5 lines in 2 locations

includes/payment-methods/class-wc-gateway-stripe-sepa.php 1 location

@@ 121-125 (lines=5) @@
118
		add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
119
		add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );
120
121
		if ( WC_Stripe_Helper::is_pre_orders_exists() ) {
122
			$this->pre_orders = new WC_Stripe_Pre_Orders_Compat();
123
124
			add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) );
125
		}
126
	}
127
128
	/**

includes/class-wc-gateway-stripe.php 1 location

@@ 147-151 (lines=5) @@
144
		// Note: display error is in the parent class.
145
		add_action( 'admin_notices', array( $this, 'display_errors' ), 9999 );
146
147
		if ( WC_Stripe_Helper::is_pre_orders_exists() ) {
148
			$this->pre_orders = new WC_Stripe_Pre_Orders_Compat();
149
150
			add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) );
151
		}
152
	}
153
154
	/**