Code Duplication    Length = 5-5 lines in 2 locations

lib/elFinderVolumeFTP.class.php 1 location

@@ 650-654 (lines=5) @@
647
            $initial_slashes = false;
648
        }
649
650
        if (($initial_slashes)
651
        && (strpos($path, '//') === 0)
652
        && (strpos($path, '///') === false)) {
653
            $initial_slashes = 2;
654
        }
655
656
        $initial_slashes = (int) $initial_slashes;
657

lib/elFinderVolumeLocalFileSystem.class.php 1 location

@@ 347-351 (lines=5) @@
344
            $initial_slashes = false;
345
        }
346
347
        if (($initial_slashes)
348
        && (strpos($path, '//') === 0)
349
        && (strpos($path, '///') === false)) {
350
            $initial_slashes = 2;
351
        }
352
353
        $initial_slashes = (int) $initial_slashes;
354