Code Duplication    Length = 4-4 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 2 locations

@@ 2473-2476 (lines=4) @@
2470
		//do check to verify we have a valid status.
2471
		$status = $this->_req_data['status'];
2472
2473
		if ( $status != 'off' && $status != 'on' ) {
2474
			EE_Error::add_error( sprintf( __('The given status (%s) is not valid. Must be "off" or "on"', 'event_espresso'), $this->_req_data['status'] ), __FILE__, __FUNCTION__, __LINE__ );
2475
			$success = FALSE;
2476
		}
2477
2478
		if ( $success ) {
2479
			//made it here?  Stop dawdling then!!
@@ 2537-2540 (lines=4) @@
2534
		//do check to verify we have a valid status.
2535
		$status = $this->_req_data['status'];
2536
2537
		if ( $status != 'activate' && $status != 'deactivate' ) {
2538
			EE_Error::add_error( sprintf( __('The given status (%s) is not valid. Must be "active" or "inactive"', 'event_espresso'), $this->_req_data['status'] ), __FILE__, __FUNCTION__, __LINE__ );
2539
			$success = FALSE;
2540
		}
2541
2542
2543
		if ( $success ) {