Code Duplication    Length = 6-6 lines in 2 locations

lib/elFinder.class.php 2 locations

@@ 2805-2810 (lines=6) @@
2802
	        if (($fp = fopen($tmpname, 'rb')) == false) {
2803
	            $result['warning'] = $this->error(self::ERROR_UPLOAD_FILE, $name, self::ERROR_UPLOAD_TRANSFER);
2804
	            $this->uploadDebug = 'Upload error: unable open tmp file';
2805
	            if (! is_uploaded_file($tmpname)) {
2806
	                if (unlink($tmpname)) {
2807
	                    unset($GLOBALS['elFinderTempFiles'][$tmpfname]);
2808
	                }
2809
	                continue;
2810
	            }
2811
	            break;
2812
	        }
2813
	        $rnres = [];
@@ 2845-2850 (lines=6) @@
2842
	        if (! $_target || ($file = $volume->upload($fp, $_target, $name, $tmpname, $hashes)) === false) {
2843
	            $result['warning'] = $this->error(self::ERROR_UPLOAD_FILE, $name, $volume->error());
2844
	            fclose($fp);
2845
	            if (! is_uploaded_file($tmpname)) {
2846
	                if (unlink($tmpname)) {
2847
	                    unset($GLOBALS['elFinderTempFiles'][$tmpname]);
2848
	                }
2849
	                continue;
2850
	            }
2851
	            break;
2852
	        }
2853