Code Duplication    Length = 4-4 lines in 2 locations

php/elFinder.class.php 2 locations

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