src/PackageSelection/PackageSelection.php
private function getDepRepos(Composer $composer)
    {
        $depRepos = [];
        if (\is_array($this->depRepositories)) {
            $rm = $composer->getRepositoryManager();
            foreach ($this->depRepositories as $index => $repoConfig) {
                $name = \is_int($index) && isset($repoConfig['url']) ? $repoConfig['url'] : $index;
                $type = $repoConfig['type'] ?? '';
                $depRepos[$index] = $rm->createRepository($type, $repoConfig, $name);
            }
        }

        return $depRepos;
    }
private function getDepRepos(Composer $composer)
    {
        $depRepos = [];
        if (\is_array($this->depRepositories)) {
            $rm = $composer->getRepositoryManager();
            foreach ($this->depRepositories as $index => $repoConfig) {
                $name = \is_int($index) && isset($repoConfig['url']) ? $repoConfig['url'] : $index;
                $type = $repoConfig['type'] ?? '';
                $depRepos[$index] = $rm->createRepository($type, $repoConfig, $name);
            }
        }

        return $depRepos;
    }
private function getDepRepos ( Composer $ composer ) { $ depRepos = [ ] ; if ( \ is_array ( $ this -> depRepositories ) ) { $ rm = $ composer -> getRepositoryManager ( ) ; foreach ( $ this -> depRepositories as $ index => $ repoConfig ) { $ name = \ is_int ( $ index ) && isset ( $ repoConfig [ 'url' ] ) ? $ repoConfig [ 'url' ] : $ index ; $ type = $ repoConfig [ 'type' ] ?? '' ; $ depRepos [ $ index ] = $ rm -> createRepository ( $ type , $ repoConfig , $ name ) ; } } return $ depRepos ; }
Create the additional repositories

@return RepositoryInterface[]
Create the additional repositories