Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

@@ 1996-1998 (lines=3) @@
1993
			return array('error' => $this->error(self::ERROR_OPEN, '#'.$target, self::ERROR_FILE_NOT_FOUND));
1994
		}
1995
		
1996
		if (($content = $volume->getContents($target)) === false) {
1997
			return array('error' => $this->error(self::ERROR_OPEN, $volume->path($target), $volume->error()));
1998
		}
1999
		
2000
		if ($args['conv'] && function_exists('mb_detect_encoding') && function_exists('mb_convert_encoding')) {
2001
			$mime = isset($file['mime'])? $file['mime'] : '';
@@ 2038-2040 (lines=3) @@
2035
			return array('error' => $this->error(self::ERROR_SAVE, '#'.$target, self::ERROR_FILE_NOT_FOUND));
2036
		}
2037
		
2038
		if (($file = $volume->putContents($target, $args['content'])) == false) {
2039
			return array('error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error()));
2040
		}
2041
		
2042
		return array('changed' => array($file));
2043
	}