From a2e23078b31fb4e6e09d23e96acd96dfac10648d Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 4 Aug 2024 23:02:28 +0200 Subject: [PATCH] Add trailing commas --- src/Controller/MetaEditor.php | 2 +- tests/src/Controller/MetaEditorTest.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Controller/MetaEditor.php b/src/Controller/MetaEditor.php index cf1eb50..827ad3f 100644 --- a/src/Controller/MetaEditor.php +++ b/src/Controller/MetaEditor.php @@ -250,7 +250,7 @@ private function requireOwnership(array $metadata, string $userid): void if ($metadata['owner'] !== $userid) { throw new Exception( - 'Metadata has an owner that is not equal to your userid, hence you are not granted access.' + 'Metadata has an owner that is not equal to your userid, hence you are not granted access.', ); } } diff --git a/tests/src/Controller/MetaEditorTest.php b/tests/src/Controller/MetaEditorTest.php index fe59960..e5a1ada 100644 --- a/tests/src/Controller/MetaEditorTest.php +++ b/tests/src/Controller/MetaEditorTest.php @@ -39,7 +39,7 @@ protected function setUp(): void 'module.enable' => ['metaedit' => true], ], '[ARRAY]', - 'simplesaml' + 'simplesaml', ); Configuration::setPreLoadedConfig( @@ -50,10 +50,10 @@ protected function setUp(): void 'auth' => 'phpunit', ], '[ARRAY]', - 'simplesaml' + 'simplesaml', ), 'module_metaedit.php', - 'simplesaml' + 'simplesaml', ); $this->session = Session::getSessionFromRequest(); @@ -71,7 +71,7 @@ public function testMain(): void { $request = Request::create( '/', - 'GET' + 'GET', ); $c = new Controller\MetaEditor($this->config, $this->session); @@ -102,7 +102,7 @@ public function testEdit(): void { $request = Request::create( '/edit', - 'GET' + 'GET', ); $c = new Controller\MetaEditor($this->config, $this->session); @@ -151,7 +151,7 @@ public function testMissingUserId(string $endpoint, string $method): void { $request = Request::create( '/' . $endpoint, - 'GET' + 'GET', ); $c = new Controller\MetaEditor($this->config, $this->session);