Code Duplication    Length = 7-7 lines in 2 locations

admin_pages/general_settings/General_Settings_Admin_Page.core.php 2 locations

@@ 581-587 (lines=7) @@
578
		$this->_template_args['inputs'] = EE_Question_Form_Input::generate_question_form_inputs_for_object( $country, $country_input_types );
579
		$country_details_settings = EEH_Template::display_template( GEN_SET_TEMPLATE_PATH . 'country_details_settings.template.php', $this->_template_args, TRUE );
580
581
		if ( defined( 'DOING_AJAX' )) {
582
			$notices = EE_Error::get_notices( FALSE, FALSE, FALSE );
583
			echo json_encode( array( 'return_data' => $country_details_settings, 'success' => $notices['success'], 'errors' => $notices['errors'] ));
584
			die();
585
		} else {
586
			return $country_details_settings;
587
		}
588
589
	}
590
@@ 641-647 (lines=7) @@
638
639
		$state_details_settings = EEH_Template::display_template( GEN_SET_TEMPLATE_PATH . 'state_details_settings.template.php', $this->_template_args, TRUE );
640
641
		if ( defined( 'DOING_AJAX' )) {
642
			$notices = EE_Error::get_notices( FALSE, FALSE, FALSE );
643
			echo json_encode( array( 'return_data' => $state_details_settings, 'success' => $notices['success'], 'errors' => $notices['errors'] ));
644
			die();
645
		} else {
646
			return $state_details_settings;
647
		}
648
649
	}
650