Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 4563-4565 (lines=3) @@
4560
	 **/
4561
	protected function makeArchive($dir, $files, $name, $arc) {
4562
		if ($arc['cmd'] === 'phpfunction') {
4563
			if (is_callable($arc['argc'])) {
4564
				call_user_func_array($arc['argc'], array($dir, $files, $name));
4565
			}
4566
		} else {
4567
			$cwd = getcwd();
4568
			chdir($dir);
@@ 4594-4596 (lines=3) @@
4591
	protected function unpackArchive($path, $arc, $remove = true) {
4592
		$dir = dirname($path);
4593
		if ($arc['cmd'] === 'phpfunction') {
4594
			if (is_callable($arc['argc'])) {
4595
				call_user_func_array($arc['argc'], array($path, $dir));
4596
			}
4597
		} else {
4598
			$cwd = getcwd();
4599
			chdir($dir);