Skip to content

Commit

Permalink
Fix trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed May 22, 2024
1 parent 886087b commit f0724e9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/MetaLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MetaLoader
private array $types = [
'saml20-idp-remote',
'saml20-sp-remote',
'attributeauthority-remote'
'attributeauthority-remote',
];


Expand Down
2 changes: 1 addition & 1 deletion src/MetaRefresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function runRefresh(string $crontag = null): void
$available_types = [
'saml20-idp-remote',
'saml20-sp-remote',
'attributeauthority-remote'
'attributeauthority-remote',
];
$set_types = $set->getOptionalArray('types', $available_types);

Expand Down
9 changes: 8 additions & 1 deletion tests/src/ARPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ public function testARP(): void
);
Configuration::setPreLoadedConfig($config, 'config.php');

$metadata = [1 => ['metadata' => ['entityid' => 'urn:test:loeki.tv', 'attributes' => ['aap','noot','mobile']]]];
$metadata = [
1 => [
'metadata' => [
'entityid' => 'urn:test:loeki.tv',
'attributes' => ['aap','noot','mobile'],
],
],
];
$attributemap = 'test';
$prefix = 'beforeit';
$suffix = 'thereafter';
Expand Down
16 changes: 8 additions & 8 deletions tests/src/Controller/MetaRefreshTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function setUp(): void
'module.enable' => ['metarefresh' => true],
],
'[ARRAY]',
'simplesaml'
'simplesaml',
);

$this->module_config = Configuration::loadFromArray(
Expand All @@ -52,24 +52,24 @@ protected function setUp(): void
'cron' => ['hourly'],
'sources' => [
[
'src' => 'https://example.org/simplesaml/module.php/aggregator/?id=kalmarcentral&set=saml2&exclude=norway'
]
'src' => 'https://example.org/simplesaml/module.php/aggregator/?id=kalmarcentral&set=saml2&exclude=norway',
],
],
'outputFormat' => 'flatfile',
'outputDir' => sys_get_temp_dir()
]
]
'outputDir' => sys_get_temp_dir(),
],
],
],
'[ARRAY]',
'simplesaml'
'simplesaml',
);

$this->authsources = Configuration::loadFromArray(
[
'admin' => ['core:AdminPassword'],
],
'[ARRAY]',
'simplesaml'
'simplesaml',
);

$this->authUtils = new class () extends Utils\Auth {
Expand Down

0 comments on commit f0724e9

Please sign in to comment.