1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Apply suggestions from code review

This commit is contained in:
Jake Barnby 2023-08-29 13:41:40 -04:00 committed by GitHub
parent 1293e7bc5f
commit 07f8e9411a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -520,10 +520,10 @@ App::get('/v1/vcs/github/installations/:installationId/providerRepositories')
$github->initializeVariables($providerInstallationId, $privateKey, $githubAppId);
$page = 1;
$per_page = 4;
$perPage = 4;
$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) {
$repo['id'] = \strval($repo['id'] ?? '');