private function repositoryAlreadySet($config, $repo)
    {
        if (!$config->repositories) {
            return false;
        } else {
            if (in_array($repo, $config->repositories)) {
                return true;
            } else {
                return false;
            }
        }
    }
private function repositoryAlreadySet($config, $repo)
    {
        if (!$config->repositories) {
            return false;
        } else {
            if (in_array($repo, $config->repositories)) {
                return true;
            } else {
                return false;
            }
        }
    }
private function repositoryAlreadySet ( $ config , $ repo ) { if ( ! $ config -> repositories ) { return false ; } else { if ( in_array ( $ repo , $ config -> repositories ) ) { return true ; } else { return false ; } } }
check if a modules repo is in composer.json
check if the repo is setted and matchs the one in config.yml

@param  object $config
@return boolean
check if a modules repo is in composer . json check if the repo is setted and matchs the one in config . yml