From 65bb7c6dfd1a32b2b6b736558593f1bb7d3db251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 25 Apr 2025 12:57:55 +0200 Subject: [PATCH] Linter fix --- .../Platform/Modules/Proxy/Http/Rules/API/Create.php | 2 +- tests/e2e/Services/Projects/ProjectsCustomServerTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php index 2d912c8ca2..b59fe64020 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php @@ -145,7 +145,7 @@ class Create extends Action ) { $owner = 'Appwrite'; } - + $rule = new Document([ '$id' => $ruleId, 'projectId' => $project->getId(), diff --git a/tests/e2e/Services/Projects/ProjectsCustomServerTest.php b/tests/e2e/Services/Projects/ProjectsCustomServerTest.php index 1b4ff414b1..a01073f3a3 100644 --- a/tests/e2e/Services/Projects/ProjectsCustomServerTest.php +++ b/tests/e2e/Services/Projects/ProjectsCustomServerTest.php @@ -18,7 +18,7 @@ class ProjectsCustomServerTest extends Scope public function testCreateProjectRule() { $testId = \uniqid(); - + $headers = array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -31,14 +31,14 @@ class ProjectsCustomServerTest extends Scope ]); \var_dump($response); - + $this->assertEquals(201, $response['headers']['status-code']); $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ 'resourceType' => 'api', 'domain' => $testId . '-abc.test.io', ]); - + $this->assertEquals(201, $response['headers']['status-code']); // duplicate rule