function GitLabDriver::getBranches
@inheritDoc
Overrides VcsDriverInterface::getBranches
2 calls to GitLabDriver::getBranches()
- GitLabDriver::getComposerInformation in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitLabDriver.php - @inheritDoc
- GitLabDriver::getFileContent in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitLabDriver.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitLabDriver.php, line 295
Class
- GitLabDriver
- Driver for GitLab API, use the Git driver for local checkouts.
Namespace
Composer\Repository\VcsCode
public function getBranches() : array {
if ($this->gitDriver) {
return $this->gitDriver
->getBranches();
}
if (null === $this->branches) {
$this->branches = $this->getReferences('branches');
}
return $this->branches;
}