Code Duplication    Length = 6-7 lines in 3 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 1363-1369 (lines=7) @@
1360
        }
1361
1362
        $ret = '';
1363
        if ($work = $this->getWorkFile($path)) {
1364
            if ($size = @getimagesize($work)) {
1365
                $cache['width'] = $size[0];
1366
                $cache['height'] = $size[1];
1367
                $ret = $size[0].'x'.$size[1];
1368
            }
1369
        }
1370
        is_file($work) && @unlink($work);
1371
1372
        return $ret;

lib/elFinderVolumeDropbox.class.php 1 location

@@ 1043-1048 (lines=6) @@
1040
        }
1041
        $ret = '';
1042
        if ($work = $this->getWorkFile($path)) {
1043
            if ($size = getimagesize($work)) {
1044
                $cache['width'] = $size[0];
1045
                $cache['height'] = $size[1];
1046
                $this->updateDBdat($path, $cache);
1047
                $ret = $size[0].'x'.$size[1];
1048
            }
1049
        }
1050
        is_file($work) && unlink($work);
1051

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 1264-1270 (lines=7) @@
1261
        }
1262
1263
        $ret = '';
1264
        if ($work = $this->getWorkFile($path)) {
1265
            if ($size = @getimagesize($work)) {
1266
                $cache['width'] = $size[0];
1267
                $cache['height'] = $size[1];
1268
                $ret = $size[0].'x'.$size[1];
1269
            }
1270
        }
1271
        is_file($work) && @unlink($work);
1272
1273
        return $ret;