Code Duplication    Length = 4-5 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 2206-2209 (lines=4) @@
2203
		$step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions';
2204
2205
		//if doing ajax then we need to verify the nonce
2206
		if ( defined( 'DOING_AJAX' ) ) {
2207
			$nonce = isset( $this->_req_data[$this->_req_nonce] ) ? sanitize_text_field( $this->_req_data[$this->_req_nonce] ) : '';
2208
			$this->_verify_nonce( $nonce, $this->_req_nonce );
2209
		}
2210
2211
		switch ( $step ) {
2212

core/admin/EE_Admin_Page.core.php 1 location

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