Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

@@ 2040-2042 (lines=3) @@
2037
			return array('error' => $this->error(self::ERROR_OPEN, '#'.$target, self::ERROR_FILE_NOT_FOUND));
2038
		}
2039
		
2040
		if (($content = $volume->getContents($target)) === false) {
2041
			return array('error' => $this->error(self::ERROR_OPEN, $volume->path($target), $volume->error()));
2042
		}
2043
		
2044
		if ($args['conv'] && function_exists('mb_detect_encoding') && function_exists('mb_convert_encoding')) {
2045
			$mime = isset($file['mime'])? $file['mime'] : '';
@@ 2082-2084 (lines=3) @@
2079
			return array('error' => $this->error(self::ERROR_SAVE, '#'.$target, self::ERROR_FILE_NOT_FOUND));
2080
		}
2081
		
2082
		if (($file = $volume->putContents($target, $args['content'])) == false) {
2083
			return array('error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error()));
2084
		}
2085
		
2086
		return array('changed' => array($file));
2087
	}