Skip to content

Commit

Permalink
Add trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 4, 2024
1 parent 571f393 commit a2e2307
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Controller/MetaEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
}
}
Expand Down
12 changes: 6 additions & 6 deletions tests/src/Controller/MetaEditorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function setUp(): void
'module.enable' => ['metaedit' => true],
],
'[ARRAY]',
'simplesaml'
'simplesaml',
);

Configuration::setPreLoadedConfig(
Expand All @@ -50,10 +50,10 @@ protected function setUp(): void
'auth' => 'phpunit',
],
'[ARRAY]',
'simplesaml'
'simplesaml',
),
'module_metaedit.php',
'simplesaml'
'simplesaml',
);

$this->session = Session::getSessionFromRequest();
Expand All @@ -71,7 +71,7 @@ public function testMain(): void
{
$request = Request::create(
'/',
'GET'
'GET',
);

$c = new Controller\MetaEditor($this->config, $this->session);
Expand Down Expand Up @@ -102,7 +102,7 @@ public function testEdit(): void
{
$request = Request::create(
'/edit',
'GET'
'GET',
);

$c = new Controller\MetaEditor($this->config, $this->session);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a2e2307

Please sign in to comment.