Code Duplication    Length = 4-4 lines in 2 locations

tools/i18n/not-gettexted.php 2 locations

@@ 144-147 (lines=4) @@
141
	function command_extract() {
142
		$args = func_get_args();
143
		$pot_filename = $args[0];
144
		if (isset($args[1]) && is_array($args[1]))
145
			$filenames = $args[1];
146
		else
147
			$filenames = array_slice($args, 1);
148
149
		$global_name = '__entries_'.mt_rand(1, 1000);
150
		$GLOBALS[$global_name] = array();
@@ 182-185 (lines=4) @@
179
	function command_replace() {
180
		$args = func_get_args();
181
		$mo_filename = $args[0];
182
		if (isset($args[1]) && is_array($args[1]))
183
			$filenames = $args[1];
184
		else
185
			$filenames = array_slice($args, 1);
186
187
		$global_name = '__mo_'.mt_rand(1, 1000);
188
		$GLOBALS[$global_name] = new MO();