chore: refactor $key/$id names
This commit is contained in:
parent
f6dec62c50
commit
e1c8cfc4a1
1 changed files with 3 additions and 3 deletions
|
@ -431,12 +431,12 @@ App::get('/v1/functions/runtimes')
|
||||||
$allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', '')));
|
$allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', '')));
|
||||||
|
|
||||||
$allowed = [];
|
$allowed = [];
|
||||||
foreach ($runtimes as $key => $runtime) {
|
foreach ($runtimes as $id => $runtime) {
|
||||||
if (!empty($allowList) && !\in_array($key, $allowList)) {
|
if (!empty($allowList) && !\in_array($id, $allowList)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$runtime['$id'] = $key;
|
$runtime['$id'] = $id;
|
||||||
$allowed[] = $runtime;
|
$allowed[] = $runtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue