Code Duplication    Length = 6-6 lines in 2 locations

src/Glob.php 2 locations

@@ 316-321 (lines=6) @@
313
     */
314
    public static function toRegEx($glob, $flags = 0, $delimiter = '~')
315
    {
316
        if (!Path::isAbsolute($glob) && false === strpos($glob, '://')) {
317
            throw new InvalidArgumentException(sprintf(
318
                'The glob "%s" is not absolute and not a URI.',
319
                $glob
320
            ));
321
        }
322
323
        $inSquare = false;
324
        $curlyLevels = 0;
@@ 461-466 (lines=6) @@
458
     */
459
    public static function getStaticPrefix($glob, $flags = 0)
460
    {
461
        if (!Path::isAbsolute($glob) && false === strpos($glob, '://')) {
462
            throw new InvalidArgumentException(sprintf(
463
                'The glob "%s" is not absolute and not a URI.',
464
                $glob
465
            ));
466
        }
467
468
        $prefix = '';
469
        $length = strlen($glob);