Skip to content

Commit 9ce4fce

Browse files
authored
Merge pull request #471 from kbond/ci-fix2
CS & SCA fixes
2 parents b5d8fa3 + 80bde56 commit 9ce4fce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Client/Provider/PassageClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function logout(): RedirectResponse
3939
{
4040
$provider = $this->getOAuth2Provider();
4141

42-
if (!($provider instanceof Passage)) {
42+
if (!$provider instanceof Passage) {
4343
throw new \RuntimeException('Invalid provider "'.$provider::class.'", expected provider "'.Passage::class.'"');
4444
}
4545

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getConfigTreeBuilder(): TreeBuilder
4444
->end()
4545
->end()
4646
->validate()
47-
->ifTrue(fn ($v) => isset($v['http_client_options'], $v['http_client']) && !empty($v['http_client_options']))
47+
->ifTrue(static fn ($v) => isset($v['http_client_options'], $v['http_client']) && !empty($v['http_client_options']))
4848
->thenInvalid('You cannot use both "http_client_options" and "http_client" at the same time under "knpu_oauth2_client".')
4949
->end()
5050
;

src/DependencyInjection/Providers/AzureProviderConfigurator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public function buildConfiguration(NodeBuilder $node)
8888
->end();
8989

9090
// Validate that either client_secret or client_certificate_private_key is set:
91-
$node
91+
$node // @phpstan-ignore-line
9292
->end()
9393
->validate()
94-
->ifTrue(fn ($v) => empty($v['client_secret']) && empty($v['client_certificate_private_key']))
94+
->ifTrue(static fn ($v) => empty($v['client_secret']) && empty($v['client_certificate_private_key']))
9595
->thenInvalid('You have to define either client_secret or client_certificate_private_key')
9696
->end()
9797
->validate()
98-
->ifTrue(fn ($v) => !empty($v['client_certificate_private_key']) && empty($v['client_certificate_thumbprint']))
98+
->ifTrue(static fn ($v) => !empty($v['client_certificate_private_key']) && empty($v['client_certificate_thumbprint']))
9999
->thenInvalid('You have to define the client_certificate_thumbprint when using a certificate')
100100
->end();
101101
}

0 commit comments

Comments
 (0)