From e1c8cfc4a13334f225af572957866994f3f6e800 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Fri, 9 Aug 2024 12:59:43 +0100 Subject: [PATCH] chore: refactor $key/$id names --- app/controllers/api/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index f70895ad60..3232f6bfe1 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -431,12 +431,12 @@ App::get('/v1/functions/runtimes') $allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', ''))); $allowed = []; - foreach ($runtimes as $key => $runtime) { - if (!empty($allowList) && !\in_array($key, $allowList)) { + foreach ($runtimes as $id => $runtime) { + if (!empty($allowList) && !\in_array($id, $allowList)) { continue; } - $runtime['$id'] = $key; + $runtime['$id'] = $id; $allowed[] = $runtime; }