Skip to content

Commit 3d8c1c5

Browse files
committed
Add trailing commas
1 parent 5d1b0c0 commit 3d8c1c5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/Aggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ protected function addSignature(SignableElementInterface $element): void
463463
$key = PrivateKey::fromFile($this->signKey, $this->signKeyPass);
464464
$signer = (new SignatureAlgorithmFactory())->getAlgorithm(
465465
$this->signAlg,
466-
$key
466+
$key,
467467
);
468468

469469
$element->sign($signer, C::C14N_EXCLUSIVE_WITHOUT_COMMENTS, $keyInfo);

src/Controller/Aggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Aggregator
4949
*/
5050
public function __construct(
5151
protected Configuration $config,
52-
protected Session $session
52+
protected Session $session,
5353
) {
5454
$this->moduleConfig = Configuration::getConfig('module_aggregator2.php');
5555
}

src/EntitySource.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private function downloadMetadata(): EntitiesDescriptor|EntityDescriptor|null
139139
$context['ssl']['cafile'] = $configUtils->getCertPath($this->sslCAFile);
140140
Logger::debug(
141141
$this->logLoc . 'Validating https connection against CA certificate(s) found in ' .
142-
var_export($context['ssl']['cafile'], true)
142+
var_export($context['ssl']['cafile'], true),
143143
);
144144
$context['ssl']['verify_peer'] = true;
145145
$context['ssl']['CN_match'] = parse_url($this->url, PHP_URL_HOST);
@@ -171,15 +171,15 @@ private function downloadMetadata(): EntitiesDescriptor|EntityDescriptor|null
171171
if (count($root) === 0) {
172172
Logger::error(
173173
$this->logLoc . 'No <EntityDescriptor> or <EntitiesDescriptor> in metadata from ' .
174-
var_export($this->url, true)
174+
var_export($this->url, true),
175175
);
176176
return null;
177177
}
178178

179179
if (count($root) > 1) {
180180
Logger::error(
181181
$this->logLoc . 'More than one <EntityDescriptor> or <EntitiesDescriptor> in metadata from ' .
182-
var_export($this->url, true)
182+
var_export($this->url, true),
183183
);
184184
return null;
185185
}
@@ -194,7 +194,7 @@ private function downloadMetadata(): EntitiesDescriptor|EntityDescriptor|null
194194
} catch (Exception $e) {
195195
Logger::error(
196196
$this->logLoc . 'Unable to parse metadata from ' .
197-
var_export($this->url, true) . ': ' . $e->getMessage()
197+
var_export($this->url, true) . ': ' . $e->getMessage(),
198198
);
199199
return null;
200200
}

tests/src/Controller/AggregatorTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function setUp(): void
4242
'module.enable' => ['aggregator2' => true],
4343
],
4444
'[ARRAY]',
45-
'simplesaml'
45+
'simplesaml',
4646
);
4747

4848
$this->session = Session::getSessionFromRequest();
@@ -67,9 +67,9 @@ protected function setUp(): void
6767
],
6868
],
6969
'[ARRAY]',
70-
'simplesaml'
70+
'simplesaml',
7171
),
72-
'module_aggregator2.php'
72+
'module_aggregator2.php',
7373
);
7474
}
7575

@@ -94,7 +94,7 @@ public function testGetWithoutId(): void
9494
{
9595
$request = Request::create(
9696
'/get',
97-
'GET'
97+
'GET',
9898
);
9999

100100
$c = new Controller\Aggregator($this->config, $this->session);
@@ -118,7 +118,7 @@ public function testGetWithId(): void
118118
'id' => 'example',
119119
'set' => 'saml2',
120120
'exclude' => 'saml2-aa',
121-
]
121+
],
122122
);
123123

124124
$c = new Controller\Aggregator($this->config, $this->session);
@@ -144,7 +144,7 @@ public function testGetWithAllowedMime(): void
144144
'set' => 'saml2',
145145
'exclude' => 'saml2-aa',
146146
'mimetype' => 'text/plain',
147-
]
147+
],
148148
);
149149

150150
$c = new Controller\Aggregator($this->config, $this->session);
@@ -170,7 +170,7 @@ public function testGetWithNonAllowedMime(): void
170170
'set' => 'saml2',
171171
'exclude' => 'saml2-aa',
172172
'mimetype' => 'something/stupid',
173-
]
173+
],
174174
);
175175

176176
$c = new Controller\Aggregator($this->config, $this->session);

0 commit comments

Comments
 (0)