Skip to content

Commit

Permalink
Apply php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Nov 29, 2024
1 parent c61839f commit 4b7e26e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

<!-- We don't want this -->
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
</rule>

<!-- Align with php-cs-fixer config -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private function createAuthenticatorService(
string $twoFactorFirewallConfigId,
string $successHandlerId,
string $failureHandlerId,
string $authRequiredHandlerId
string $authRequiredHandlerId,
): string {
$authenticatorId = self::AUTHENTICATOR_ID_PREFIX.$firewallName;
$container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(
private AuthenticationFailureHandlerInterface $failureHandler,
private AuthenticationRequiredHandlerInterface $authenticationRequiredHandler,
private EventDispatcherInterface $eventDispatcher,
?LoggerInterface $logger = null
?LoggerInterface $logger = null,
) {
$this->logger = $logger ?? new NullLogger();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CheckTwoFactorCodeListener extends AbstractCheckCodeListener

public function __construct(
PreparationRecorderInterface $preparationRecorder,
private TwoFactorProviderRegistry $providerRegistry
private TwoFactorProviderRegistry $providerRegistry,
) {
parent::__construct($preparationRecorder);
}
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Security/TwoFactor/AuthenticationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
private Request $request,
private TokenInterface $token,
private Passport $passport,
private string $firewallName
private string $firewallName,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
private TwoFactorConditionRegistry $twoFactorConditionRegistry,
private TwoFactorProviderInitiator $twoFactorProviderInitiator,
private AuthenticationContextFactoryInterface $authenticationContextFactory,
private RequestStack $requestStack
private RequestStack $requestStack,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TwoFactorProviderInitiator
{
public function __construct(
private TwoFactorProviderRegistry $providerRegistry,
private TwoFactorTokenFactoryInterface $twoFactorTokenFactory
private TwoFactorTokenFactoryInterface $twoFactorTokenFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(
?LoggerInterface $logger,
private string $firewallName,
private bool $prepareOnLogin,
private bool $prepareOnAccessDenied
private bool $prepareOnAccessDenied,
) {
$this->logger = $logger ?? new NullLogger();
}
Expand Down

0 comments on commit 4b7e26e

Please sign in to comment.