private function resolveRepositoryName($repository)
    {
        if ($repository === null) {
            $aliases = array_keys($this->repositories);
            $repository = array_shift($aliases);
        }

        return $repository;
    }
private function resolveRepositoryName($repository)
    {
        if ($repository === null) {
            $aliases = array_keys($this->repositories);
            $repository = array_shift($aliases);
        }

        return $repository;
    }
private function resolveRepositoryName ( $ repository ) { if ( $ repository === null ) { $ aliases = array_keys ( $ this -> repositories ) ; $ repository = array_shift ( $ aliases ) ; } return $ repository ; }
Resolves repository name.

@param string|null $repository

@return string
Resolves repository name .