1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

chore: refactor $key/$id names

This commit is contained in:
loks0n 2024-08-09 12:59:43 +01:00
parent f6dec62c50
commit e1c8cfc4a1

View file

@ -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;
}