Skip to content

Commit 249b65b

Browse files
committed
Add trailing commas
1 parent 949c6e4 commit 249b65b

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Auth/Process/ExpiryDate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function __construct(array &$config, $reserved)
8383
if (array_key_exists('netid_attr', $config)) {
8484
if (!is_string($config['netid_attr'])) {
8585
throw new Error\Exception(
86-
'Invalid attribute name given as eduPersonPrincipalName to expirycheck::ExpiryDate filter.'
86+
'Invalid attribute name given as eduPersonPrincipalName to expirycheck::ExpiryDate filter.',
8787
);
8888
}
8989

@@ -93,7 +93,7 @@ public function __construct(array &$config, $reserved)
9393
if (array_key_exists('expirydate_attr', $config)) {
9494
if (!is_string($config['expirydate_attr'])) {
9595
throw new Error\Exception(
96-
'Invalid attribute name given as schacExpiryDate to expirycheck::ExpiryDate filter.'
96+
'Invalid attribute name given as schacExpiryDate to expirycheck::ExpiryDate filter.',
9797
);
9898
}
9999

@@ -111,7 +111,7 @@ public function __construct(array &$config, $reserved)
111111
if (array_key_exists('convert_expirydate_to_unixtime', $config)) {
112112
if (!is_bool($config['convert_expirydate_to_unixtime'])) {
113113
throw new Error\Exception(
114-
'Invalid value for convert_expirydate_to_unixtime given to expirycheck::ExpiryDate filter.'
114+
'Invalid value for convert_expirydate_to_unixtime given to expirycheck::ExpiryDate filter.',
115115
);
116116
}
117117

src/Controller/ExpiryCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ExpiryCheck
5050
*/
5151
public function __construct(
5252
Configuration $config,
53-
Session $session
53+
Session $session,
5454
) {
5555
$this->config = $config;
5656
$this->session = $session;

tests/src/Controller/ExpiryCheckTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function setUp(): void
4141
'module.enable' => ['expirycheck' => true],
4242
],
4343
'[ARRAY]',
44-
'simplesaml'
44+
'simplesaml',
4545
);
4646

4747
$this->session = Session::getSessionFromRequest();
@@ -61,7 +61,7 @@ public function testMissingSourceId(string $endpoint): void
6161
{
6262
$request = Request::create(
6363
'/' . $endpoint,
64-
'GET'
64+
'GET',
6565
);
6666

6767
$c = new Controller\ExpiryCheck($this->config, $this->session);
@@ -148,7 +148,7 @@ public function testAboutToExpireYes(): void
148148
$request = Request::create(
149149
'/about2expire',
150150
'GET',
151-
['yes' => 'yes', 'StateId' => 'abc123']
151+
['yes' => 'yes', 'StateId' => 'abc123'],
152152
);
153153

154154
$c = new Controller\ExpiryCheck($this->config, $this->session);

0 commit comments

Comments
 (0)