Code Duplication    Length = 4-4 lines in 2 locations

php/elFinder.class.php 2 locations

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