Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

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