From 740d9def8e8ebbc25b47017db5c6f5423b621865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 27 Oct 2023 10:33:08 +0200 Subject: [PATCH] Linter fix --- app/controllers/general.php | 2 +- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 448f23c875..14b074d21d 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -124,7 +124,7 @@ function router(App $utopia, Database $dbForConsole, SwooleRequest $swooleReques $cookieHeaders[] = "{$key}={$value}"; } - if(!empty($cookieHeaders)) { + if (!empty($cookieHeaders)) { $swooleHeaders['cookie'] = \implode('; ', $cookieHeaders); } diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 58c89f5687..b5030dfd49 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -1405,9 +1405,9 @@ class FunctionsCustomServerTest extends Scope // Wait a little for activation to finish sleep(5); - + $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=value4'; - + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'],