Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 185-189 (lines=5) @@
182
		add_action( 'woocommerce_receipt_stripe', array( $this, 'stripe_checkout_receipt_page' ) );
183
		add_action( 'woocommerce_api_' . strtolower( get_class( $this ) ), array( $this, 'stripe_checkout_return_handler' ) );
184
185
		if ( WC_Stripe_Helper::is_pre_orders_exists() ) {
186
			$this->pre_orders = new WC_Stripe_Pre_Orders_Compat();
187
188
			add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) );
189
		}
190
	}
191
192
	/**

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

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