From 07f8e9411aa133ffd0267fef4cce14c0abbd5050 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 29 Aug 2023 13:41:40 -0400 Subject: [PATCH] Apply suggestions from code review --- app/controllers/api/vcs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index deaf6aa641..b22cc86fd7 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -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'] ?? '');