Code Duplication    Length = 4-4 lines in 2 locations

php/elFinder.class.php 2 locations

@@ 1154-1157 (lines=4) @@
1151
		$result  = array('removed' => array());
1152
		
1153
		foreach ($targets as $target) {
1154
			if (($volume = $this->volume($target)) == false) {
1155
				$result['warning'] = $this->error(self::ERROR_RM, '#'.$target, self::ERROR_FILE_NOT_FOUND);
1156
				return $result;
1157
			}
1158
			if (!$volume->rm($target)) {
1159
				$result['warning'] = $this->error($volume->error());
1160
				return $result;
@@ 1949-1952 (lines=4) @@
1946
		}
1947
		
1948
		foreach ($targets as $target) {
1949
			if (($srcVolume = $this->volume($target)) == false) {
1950
				$result['warning'] = $this->error($error, '#'.$target, self::ERROR_FILE_NOT_FOUND);
1951
				break;
1952
			}
1953
			
1954
			$rnres = array();
1955
			if ($renames) {