Code Duplication    Length = 3-3 lines in 2 locations

php/elFinder.class.php 2 locations

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