Apply suggestions from code review
This commit is contained in:
parent
1293e7bc5f
commit
07f8e9411a
|
@ -520,10 +520,10 @@ App::get('/v1/vcs/github/installations/:installationId/providerRepositories')
|
||||||
$github->initializeVariables($providerInstallationId, $privateKey, $githubAppId);
|
$github->initializeVariables($providerInstallationId, $privateKey, $githubAppId);
|
||||||
|
|
||||||
$page = 1;
|
$page = 1;
|
||||||
$per_page = 4;
|
$perPage = 4;
|
||||||
|
|
||||||
$owner = $github->getOwnerName($providerInstallationId);
|
$owner = $github->getOwnerName($providerInstallationId);
|
||||||
$repos = $github->searchRepositories($owner, $page, $per_page, $search);
|
$repos = $github->searchRepositories($owner, $page, $perPage, $search);
|
||||||
|
|
||||||
$repos = \array_map(function ($repo) use ($installation) {
|
$repos = \array_map(function ($repo) use ($installation) {
|
||||||
$repo['id'] = \strval($repo['id'] ?? '');
|
$repo['id'] = \strval($repo['id'] ?? '');
|
||||||
|
|
Loading…
Reference in a new issue