Code Duplication    Length = 4-4 lines in 2 locations

php/elFinder.class.php 2 locations

@@ 1200-1203 (lines=4) @@
1197
		$result  = array('removed' => array());
1198
		
1199
		foreach ($targets as $target) {
1200
			if (($volume = $this->volume($target)) == false) {
1201
				$result['warning'] = $this->error(self::ERROR_RM, '#'.$target, self::ERROR_FILE_NOT_FOUND);
1202
				return $result;
1203
			}
1204
			if (!$volume->rm($target)) {
1205
				$result['warning'] = $this->error($volume->error());
1206
				return $result;
@@ 1993-1996 (lines=4) @@
1990
		}
1991
		
1992
		foreach ($targets as $target) {
1993
			if (($srcVolume = $this->volume($target)) == false) {
1994
				$result['warning'] = $this->error($error, '#'.$target, self::ERROR_FILE_NOT_FOUND);
1995
				break;
1996
			}
1997
			
1998
			$rnres = array();
1999
			if ($renames) {