Code Duplication    Length = 4-5 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 2199-2202 (lines=4) @@
2196
		$step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions';
2197
2198
		//if doing ajax then we need to verify the nonce
2199
		if ( defined( 'DOING_AJAX' ) ) {
2200
			$nonce = isset( $this->_req_data[$this->_req_nonce] ) ? sanitize_text_field( $this->_req_data[$this->_req_nonce] ) : '';
2201
			$this->_verify_nonce( $nonce, $this->_req_nonce );
2202
		}
2203
2204
		switch ( $step ) {
2205

core/admin/EE_Admin_Page.core.php 1 location

@@ 871-875 (lines=5) @@
868
869
		$nonce_check = isset( $this->_route_config['require_nonce'] ) ? $this->_route_config['require_nonce'] : TRUE;
870
871
		if ( $this->_req_action != 'default' && $nonce_check ) {
872
			// set nonce from post data
873
			$nonce = isset($this->_req_data[ $this->_req_nonce  ]) ? sanitize_text_field( $this->_req_data[ $this->_req_nonce  ] ) : '';
874
			$this->_verify_nonce( $nonce, $this->_req_nonce );
875
		}
876
		//set the nav_tabs array but ONLY if this is  UI_request
877
		if ( $this->_is_UI_request )
878
			$this->_set_nav_tabs();