mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
CS tweaks, refs #6592
This commit is contained in:
parent
6fd504ef41
commit
c89f6338c2
2 changed files with 11 additions and 8 deletions
|
@ -447,12 +447,12 @@ class GitLabDriver extends VcsDriver
|
|||
return true;
|
||||
}
|
||||
|
||||
protected function getNextPage()
|
||||
private function getNextPage()
|
||||
{
|
||||
$headers = $this->remoteFilesystem->getLastHeaders();
|
||||
foreach ($headers as $header) {
|
||||
if (substr($header, 0, 5) === 'Link:') {
|
||||
$links = explode(',', substr($header, 5));
|
||||
if (preg_match('{^link:\s*(.+?)\s*$}i', $header, $match)) {
|
||||
$links = explode(',', $match[1]);
|
||||
foreach ($links as $link) {
|
||||
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
||||
return $match[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue