style: add brief comment to LOCATION impersonation block

This commit is contained in:
harsh mahajan committed 2026-06-05 14:50:54 +05:30
1 parent d2fe065de8
commit 55d3af2f59
2 files changed
+2

No files matched your search

@@ -385,6 +385,7 @@ class OpenAPI3 extends Format
$temp['x-appwrite']['auth'] = array_slice($securities, 0, $this->authCount);
// Impersonation falls back to query params for location-type methods (browsers can't set headers on resource URLs)
if ($sdk->getType() === MethodType::LOCATION) {
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
if (\array_key_exists($key, $this->keys)) {
@@ -375,6 +375,7 @@ class Swagger2 extends Format
$temp['x-appwrite']['auth'] = \array_slice($securities, 0, $this->authCount);
// Impersonation falls back to query params for location-type methods (browsers can't set headers on resource URLs)
if ($sdk->getType() === MethodType::LOCATION) {
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
if (\array_key_exists($key, $this->keys)) {