Code Duplication    Length = 3-3 lines in 2 locations

includes/connect/class-wc-stripe-connect.php 2 locations

@@ 185-187 (lines=3) @@
182
		 */
183
		public function wc_ajax_oauth_init() {
184
185
			if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], '_wc_stripe_admin_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized,WordPress.Security.ValidatedSanitizedInput.MissingUnslash
186
				wp_die( __( 'You are not authorized to automatically copy Stripe keys.', 'woocommerce-gateway-stripe' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
187
			}
188
189
			$oauth_url = $this->get_oauth_url();
190
@@ 203-205 (lines=3) @@
200
		 */
201
		public function wc_ajax_clear_stripe_keys() {
202
203
			if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], '_wc_stripe_admin_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized,WordPress.Security.ValidatedSanitizedInput.MissingUnslash
204
				wp_die( __( 'You are not authorized to reset Stripe keys.', 'woocommerce-gateway-stripe' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
205
			}
206
207
			$this->clear_stripe_keys();
208