src/PackageSelection/PackageSelection.php
private function filterRepositories(array $repositories)
    {
        $url = $this->repositoryFilter;

        return array_filter($repositories, function ($repository) use ($url) {
            if (!($repository instanceof ConfigurableRepositoryInterface)) {
                return false;
            }

            $config = $repository->getRepoConfig();

            if (!isset($config['url']) || $config['url'] !== $url) {
                return false;
            }

            return true;
        });
    }
private function filterRepositories(array $repositories)
    {
        $url = $this->repositoryFilter;

        return array_filter($repositories, function ($repository) use ($url) {
            if (!($repository instanceof ConfigurableRepositoryInterface)) {
                return false;
            }

            $config = $repository->getRepoConfig();

            if (!isset($config['url']) || $config['url'] !== $url) {
                return false;
            }

            return true;
        });
    }
private function filterRepositories ( array $ repositories ) { $ url = $ this -> repositoryFilter ; return array_filter ( $ repositories , function ( $ repository ) use ( $ url ) { if ( ! ( $ repository instanceof ConfigurableRepositoryInterface ) ) { return false ; } $ config = $ repository -> getRepoConfig ( ) ; if ( ! isset ( $ config [ 'url' ] ) || $ config [ 'url' ] !== $ url ) { return false ; } return true ; } ) ; }
Filter given repositories.

@param RepositoryInterface[] $repositories

@return RepositoryInterface[]
Filter given repositories .