Code Duplication    Length = 4-4 lines in 2 locations

php/elFinder.class.php 2 locations

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