Skip to content

Commit 71970ae

Browse files
committed
Newest style fixes
1 parent 3c912ca commit 71970ae

19 files changed

+17
-31
lines changed

src/Federation/EntityStatementFetcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
use Psr\Log\LoggerInterface;
88
use SimpleSAML\OpenID\Codebooks\ClaimsEnum;
99
use SimpleSAML\OpenID\Codebooks\ContentTypesEnum;
10-
use SimpleSAML\OpenID\Codebooks\EntityTypesEnum;
1110
use SimpleSAML\OpenID\Codebooks\WellKnownEnum;
1211
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
1312
use SimpleSAML\OpenID\Exceptions\EntityStatementException;
1413
use SimpleSAML\OpenID\Exceptions\FetchException;
15-
use SimpleSAML\OpenID\Exceptions\JwsException;
1614
use SimpleSAML\OpenID\Federation\Factories\EntityStatementFactory;
1715
use SimpleSAML\OpenID\Helpers;
1816
use SimpleSAML\OpenID\Jws\JwsFetcher;

src/Federation/TrustChain.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
1111
use SimpleSAML\OpenID\Exceptions\EntityStatementException;
1212
use SimpleSAML\OpenID\Exceptions\TrustChainException;
13-
use SimpleSAML\OpenID\Helpers;
1413

1514
class TrustChain implements JsonSerializable
1615
{

src/Jws/AbstractJwsFetcher.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Psr\Log\LoggerInterface;
88
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
99
use SimpleSAML\OpenID\Helpers;
10-
use SimpleSAML\OpenID\Jws\Factories\ParsedJwsFactory;
1110
use SimpleSAML\OpenID\Utils\ArtifactFetcher;
1211

1312
abstract class AbstractJwsFetcher

tests/src/Federation/EntityStatementFetcherTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use SimpleSAML\OpenID\Codebooks\WellKnownEnum;
1515
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
1616
use SimpleSAML\OpenID\Exceptions\EntityStatementException;
17-
use SimpleSAML\OpenID\Exceptions\FetchException;
1817
use SimpleSAML\OpenID\Federation\EntityStatement;
1918
use SimpleSAML\OpenID\Federation\EntityStatementFetcher;
2019
use SimpleSAML\OpenID\Federation\Factories\EntityStatementFactory;

tests/src/Federation/EntityStatementTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use PHPUnit\Framework\MockObject\MockObject;
1212
use PHPUnit\Framework\TestCase;
1313
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
14-
use SimpleSAML\OpenID\Exceptions\EntityStatementException;
1514
use SimpleSAML\OpenID\Exceptions\JwsException;
1615
use SimpleSAML\OpenID\Federation\EntityStatement;
1716
use SimpleSAML\OpenID\Federation\EntityStatement\Factories\TrustMarkClaimBagFactory;

tests/src/Federation/Factories/TrustChainFactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use SimpleSAML\OpenID\Federation\MetadataPolicyApplicator;
1717
use SimpleSAML\OpenID\Federation\MetadataPolicyResolver;
1818
use SimpleSAML\OpenID\Federation\TrustChain;
19-
use SimpleSAML\OpenID\Helpers;
2019

2120
#[CoversClass(TrustChainFactory::class)]
2221
#[UsesClass(TrustChain::class)]

tests/src/Federation/MetadataPolicyResolverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\UsesClass;
99
use PHPUnit\Framework\MockObject\MockObject;
10+
use PHPUnit\Framework\TestCase;
1011
use SimpleSAML\OpenID\Codebooks\EntityTypesEnum;
1112
use SimpleSAML\OpenID\Codebooks\MetadataPolicyOperatorsEnum;
1213
use SimpleSAML\OpenID\Exceptions\MetadataPolicyException;
1314
use SimpleSAML\OpenID\Federation\MetadataPolicyResolver;
14-
use PHPUnit\Framework\TestCase;
1515
use SimpleSAML\OpenID\Helpers;
1616

1717
#[CoversClass(MetadataPolicyResolver::class)]
@@ -84,7 +84,7 @@ public function testForHappyFlow(): void
8484
EntityTypesEnum::OpenIdRelyingParty,
8585
[
8686
$this->trustAnchorMetadataPolicySample,
87-
$this->intermediateMetadataPolicySample
87+
$this->intermediateMetadataPolicySample,
8888
],
8989
);
9090

@@ -98,9 +98,9 @@ public function testReturnsEmptyArrayIfEntityTypeNotPresent(): void
9898
EntityTypesEnum::FederationEntity,
9999
[
100100
$this->trustAnchorMetadataPolicySample,
101-
$this->intermediateMetadataPolicySample
101+
$this->intermediateMetadataPolicySample,
102102
],
103-
)
103+
),
104104
);
105105
}
106106

tests/src/Federation/TrustChainResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testCanGetConfigurationChains(): void
9999
->method('fromCacheOrWellKnownEndpoint')
100100
->willReturnCallback(
101101
fn(string $entityId) =>
102-
$this->configChainSample[$entityId] ?? throw new \Exception('No entity.')
102+
$this->configChainSample[$entityId] ?? throw new \Exception('No entity.'),
103103
);
104104

105105
$this->leafEntityConfigurationMock

tests/src/Federation/TrustChainTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\MockObject\MockObject;
9-
use SimpleSAML\OpenID\Codebooks\ClaimsEnum;
9+
use PHPUnit\Framework\TestCase;
1010
use SimpleSAML\OpenID\Codebooks\EntityTypesEnum;
1111
use SimpleSAML\OpenID\Decorators\DateIntervalDecorator;
1212
use SimpleSAML\OpenID\Exceptions\EntityStatementException;
@@ -15,7 +15,6 @@
1515
use SimpleSAML\OpenID\Federation\MetadataPolicyApplicator;
1616
use SimpleSAML\OpenID\Federation\MetadataPolicyResolver;
1717
use SimpleSAML\OpenID\Federation\TrustChain;
18-
use PHPUnit\Framework\TestCase;
1918

2019
#[CoversClass(TrustChain::class)]
2120
class TrustChainTest extends TestCase
@@ -54,7 +53,7 @@ protected function setUp(): void
5453
protected function sut(
5554
?DateIntervalDecorator $timestampValidationLeewayDecorator = null,
5655
?MetadataPolicyResolver $metadataPolicyResolver = null,
57-
?MetadataPolicyApplicator $metadataPolicyApplicator = null
56+
?MetadataPolicyApplicator $metadataPolicyApplicator = null,
5857
): TrustChain {
5958
$timestampValidationLeewayDecorator ??= $this->timestampValidationLeewayDecoratorMock;
6059
$metadataPolicyResolver ??= $this->metadataPolicyResolverMock;
@@ -203,7 +202,7 @@ public function testCanGetResolvedMetadata(): void
203202
204203
],
205204
'some_claim' => 'something',
206-
]
205+
],
207206
);
208207

209208
$this->assertIsArray($sut->getResolvedMetadata(EntityTypesEnum::OpenIdRelyingParty));

tests/src/Jwks/Factories/JwksFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\UsesClass;
9+
use PHPUnit\Framework\TestCase;
910
use SimpleSAML\OpenID\Jwks;
1011
use SimpleSAML\OpenID\Jwks\Factories\JwksFactory;
11-
use PHPUnit\Framework\TestCase;
1212
use SimpleSAML\OpenID\Jwks\JwksDecorator;
1313

1414
#[CoversClass(JwksFactory::class)]

0 commit comments

Comments
 (0)