Code Duplication    Length = 9-9 lines in 2 locations

src/Repository/RepositoryManagerImpl.php 1 location

@@ 482-490 (lines=9) @@
479
        $this->conflicts = new ConflictCollection();
480
481
        // Load mappings
482
        foreach ($this->modules as $module) {
483
            if (null === $module->getModuleFile()) {
484
                continue;
485
            }
486
487
            foreach ($module->getModuleFile()->getPathMappings() as $mapping) {
488
                $this->loadPathMapping($mapping, $module)->execute();
489
            }
490
        }
491
492
        // Scan all paths for conflicts
493
        $this->updateConflicts($this->mappingsByResource->getRepositoryPaths())->execute();

src/Discovery/DiscoveryManagerImpl.php 1 location

@@ 701-709 (lines=9) @@
698
        $this->bindingDescriptors = new BindingDescriptorCollection();
699
700
        // First load all the types
701
        foreach ($this->modules as $module) {
702
            if (null === $module->getModuleFile()) {
703
                continue;
704
            }
705
706
            foreach ($module->getModuleFile()->getTypeDescriptors() as $typeDescriptor) {
707
                $this->loadTypeDescriptor($typeDescriptor, $module)->execute();
708
            }
709
        }
710
711
        // Then the bindings for the loaded types
712
        foreach ($this->modules as $module) {