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', '')));
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue