Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

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