Code Duplication    Length = 3-5 lines in 2 locations

lib/elFinderVolumeDropbox.class.php 1 location

@@ 1038-1040 (lines=3) @@
1035
	        return '';
1036
	    }
1037
	    $cache = $this->getDBdat($path);
1038
	    if (isset($cache['width']) && isset($cache['height'])) {
1039
	        return $cache['width'].'x'.$cache['height'];
1040
	    }
1041
	    $ret = '';
1042
	    if ($work = $this->getWorkFile($path)) {
1043
	        if ($size = getimagesize($work)) {

lib/elFinderVolumeGoogleDrive.class.php 1 location

@@ 1489-1493 (lines=5) @@
1486
        }
1487
        $ret = '';
1488
1489
        if ($file = $this->_gd_getFile($path)) {
1490
            if (isset($file['imageMediaMetadata'])) {
1491
                return $file['imageMediaMetadata']['width'].'x'.$file['imageMediaMetadata']['height'];
1492
            }
1493
        }
1494
1495
        return $ret;
1496
    }