Skip to content

Commit a2b6a39

Browse files
committed
Add trailing commas
1 parent 0a36092 commit a2b6a39

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/Controller/ConsentAdmin.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ConsentAdmin
7474
*/
7575
public function __construct(
7676
Configuration $config,
77-
Session $session
77+
Session $session,
7878
) {
7979
$this->config = $config;
8080
$this->moduleConfig = Configuration::getConfig('module_consentAdmin.php');
@@ -188,7 +188,7 @@ public function main(Request $request): Template
188188
if (empty($userids)) {
189189
throw new Exception(sprintf(
190190
'Could not generate useridentifier for storing consent. Attribute [%s] was not available.',
191-
$userid_attributename
191+
$userid_attributename,
192192
));
193193
}
194194

@@ -225,7 +225,7 @@ public function main(Request $request): Template
225225
$template = new Template(
226226
$this->config,
227227
'consentAdmin:consentadminajax.twig',
228-
'consentAdmin:consentadmin'
228+
'consentAdmin:consentadmin',
229229
);
230230

231231
// Get SP metadata
@@ -240,7 +240,7 @@ public function main(Request $request): Template
240240
$attributes,
241241
$userid,
242242
$hashAttributes,
243-
$excludeAttributes
243+
$excludeAttributes,
244244
);
245245

246246
// Add a consent (or update if attributes have changed and old consent for SP and IdP exists)
@@ -289,7 +289,7 @@ public function main(Request $request): Template
289289
$attributes,
290290
$userid,
291291
$hashAttributes,
292-
$excludeAttributes
292+
$excludeAttributes,
293293
);
294294

295295
// Check if consent exists
@@ -358,7 +358,7 @@ private function driveProcessingChain(
358358
array $attributes,
359359
string $userid,
360360
bool $hashAttributes,
361-
array $excludeAttributes
361+
array $excludeAttributes,
362362
): array {
363363
/*
364364
* Create a new processing chain

tests/src/Controller/ConsentAdminTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function setUp(): void
5959
],
6060
],
6161
'[ARRAY]',
62-
'simplesaml'
62+
'simplesaml',
6363
);
6464
Configuration::setPreLoadedConfig($this->config, 'config.php');
6565

@@ -74,9 +74,9 @@ protected function setUp(): void
7474
'showDescription' => true,
7575
],
7676
'[ARRAY]',
77-
'simplesaml'
77+
'simplesaml',
7878
),
79-
'module_consentAdmin.php'
79+
'module_consentAdmin.php',
8080
);
8181

8282
Configuration::setPreLoadedConfig(
@@ -86,9 +86,9 @@ protected function setUp(): void
8686
'exampleauth:StaticSource',
8787
'eduPersonPrincipalName' => ['testuser@simplesamlphp.org'],
8888
],
89-
]
89+
],
9090
),
91-
'authsources.php'
91+
'authsources.php',
9292
);
9393

9494
$this->session = Session::getSessionFromRequest();
@@ -204,7 +204,7 @@ public function testMainActionTrue(): void
204204
$request = Request::create(
205205
'/',
206206
'GET',
207-
['action' => 'true', 'cv' => 'urn:some:entity']
207+
['action' => 'true', 'cv' => 'urn:some:entity'],
208208
);
209209

210210
$c = new Controller\ConsentAdmin($this->config, $this->session);
@@ -232,7 +232,7 @@ public function testMainActionFalse(): void
232232
$request = Request::create(
233233
'/',
234234
'GET',
235-
['action' => 'false', 'cv' => 'urn:some:entity']
235+
['action' => 'false', 'cv' => 'urn:some:entity'],
236236
);
237237

238238
$c = new Controller\ConsentAdmin($this->config, $this->session);
@@ -260,7 +260,7 @@ public function testMainActionUnknown(): void
260260
$request = Request::create(
261261
'/',
262262
'GET',
263-
['action' => 'unknown', 'cv' => 'urn:some:entity']
263+
['action' => 'unknown', 'cv' => 'urn:some:entity'],
264264
);
265265

266266
$c = new Controller\ConsentAdmin($this->config, $this->session);
@@ -287,7 +287,7 @@ public function testMainNoAction(): void
287287
$request = Request::create(
288288
'/',
289289
'GET',
290-
[]
290+
[],
291291
);
292292

293293
$c = new Controller\ConsentAdmin($this->config, $this->session);

0 commit comments

Comments
 (0)