Code Duplication    Length = 7-7 lines in 2 locations

edit_interface.php 2 locations

@@ 3044-3050 (lines=7) @@
3041
			echo FunctionsEdit::addSimpleTag('0 SEX U');
3042
		}
3043
		$bdm = 'BD';
3044
		if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $controller->tree()->getPreference('QUICK_REQUIRED_FACTS'), $matches)) {
3045
			foreach ($matches[1] as $match) {
3046
				if (!in_array($match, explode('|', WT_EVENTS_DEAT))) {
3047
					echo FunctionsEdit::addSimpleTags($match);
3048
				}
3049
			}
3050
		}
3051
		//-- if adding a spouse add the option to add a marriage fact to the new family
3052
		if ($nextaction === 'add_spouse_to_individual_action' || $nextaction === 'add_spouse_to_family_action') {
3053
			$bdm .= 'M';
@@ 3060-3066 (lines=7) @@
3057
				}
3058
			}
3059
		}
3060
		if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $controller->tree()->getPreference('QUICK_REQUIRED_FACTS'), $matches)) {
3061
			foreach ($matches[1] as $match) {
3062
				if (in_array($match, explode('|', WT_EVENTS_DEAT))) {
3063
					echo FunctionsEdit::addSimpleTags($match);
3064
				}
3065
			}
3066
		}
3067
	}
3068
3069
	echo keep_chan($person);