Code Duplication    Length = 6-9 lines in 2 locations

Sources/ManageLanguages.php 2 locations

@@ 1017-1025 (lines=9) @@
1014
			if ($line[0] == '$' && !empty($multiline_cache))
1015
			{
1016
				preg_match('~\$(helptxt|txt|editortxt)\[\'(.+)\'\]\s?=\s?(.+);~ms', strtr($multiline_cache, array("\r" => '')), $matches);
1017
				if (!empty($matches[3]))
1018
				{
1019
					$entries[$matches[2]] = array(
1020
						'type' => $matches[1],
1021
						'full' => $matches[0],
1022
						'entry' => $matches[3],
1023
					);
1024
					$multiline_cache = '';
1025
				}
1026
			}
1027
			$multiline_cache .= $line;
1028
		}
@@ 1033-1038 (lines=6) @@
1030
		if ($multiline_cache)
1031
		{
1032
			preg_match('~\$(helptxt|txt|editortxt)\[\'(.+)\'\]\s?=\s?(.+);~ms', strtr($multiline_cache, array("\r" => '')), $matches);
1033
			if (!empty($matches[3]))
1034
				$entries[$matches[2]] = array(
1035
					'type' => $matches[1],
1036
					'full' => $matches[0],
1037
					'entry' => $matches[3],
1038
				);
1039
		}
1040
1041
		// These are the entries we can definitely save.