Fixing PHPCS errors.
This commit is contained in:
parent
74565282a8
commit
e7a270f60a
12 changed files with 13 additions and 26 deletions
|
|
@ -48,24 +48,18 @@ class Github
|
|||
$res = $http->get($url, $params);
|
||||
|
||||
foreach ($res['body'] as $item) {
|
||||
|
||||
$results[] = $item;
|
||||
|
||||
}
|
||||
|
||||
foreach ($res['headers'] as $header) {
|
||||
|
||||
if (preg_match('/^Link: <([^>]+)>; rel="next"/', $header, $r)) {
|
||||
|
||||
$host = parse_url($r[1]);
|
||||
|
||||
parse_str($host['query'], $params);
|
||||
$results = $this->makeRecursiveRequest($host['path'], $params, $results);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $results;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue