Code Duplication    Length = 10-10 lines in 2 locations

lib/elFinderVolumeBox.class.php 1 location

@@ 291-300 (lines=10) @@
288
     *
289
     * @return bool
290
     */
291
    public function netunmount($netVolumes, $key)
292
    {
293
        if ($tmbs = glob(rtrim($this->options['tmbPath'], '\\/').DIRECTORY_SEPARATOR.$this->tmbPrefix.'*.png')) {
294
            foreach ($tmbs as $file) {
295
                unlink($file);
296
            }
297
        }
298
299
        return true;
300
    }
301
302
    /*********************************************************************/
303
    /*                               FS API                              */

lib/elFinderVolumeOneDrive.class.php 1 location

@@ 301-310 (lines=10) @@
298
     *
299
     * @return bool
300
     */
301
    public function netunmount($netVolumes, $key)
302
    {
303
        if ($tmbs = glob(rtrim($this->options['tmbPath'], '\\/').DIRECTORY_SEPARATOR.$this->tmbPrefix.'*.png')) {
304
            foreach ($tmbs as $file) {
305
                unlink($file);
306
            }
307
        }
308
309
        return true;
310
    }
311
312
    /*********************************************************************/
313
    /*                               FS API                              */