Code Duplication    Length = 11-11 lines in 2 locations

vendor/composer/ClassLoader.php 2 locations

@@ 376-386 (lines=11) @@
373
        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
374
375
        $first = $class[0];
376
        if (isset($this->prefixLengthsPsr4[$first])) {
377
            foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
378
                if (0 === strpos($class, $prefix)) {
379
                    foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
380
                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
381
                            return $file;
382
                        }
383
                    }
384
                }
385
            }
386
        }
387
388
        // PSR-4 fallback dirs
389
        foreach ($this->fallbackDirsPsr4 as $dir) {
@@ 405-415 (lines=11) @@
402
            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
403
        }
404
405
        if (isset($this->prefixesPsr0[$first])) {
406
            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
407
                if (0 === strpos($class, $prefix)) {
408
                    foreach ($dirs as $dir) {
409
                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
410
                            return $file;
411
                        }
412
                    }
413
                }
414
            }
415
        }
416
417
        // PSR-0 fallback dirs
418
        foreach ($this->fallbackDirsPsr0 as $dir) {