Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit f3c4cf6

Browse files
committed
Code style
1 parent 253ed9e commit f3c4cf6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Controller/FormController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function getTemplateVars(Request $request, TwoFactorTokenInterface $to
9999
$displayTrustedOption = $this->trustedFeatureEnabled && (!$config->isMultiFactor() || 1 === count($pendingTwoFactorProviders));
100100
$authenticationException = $this->getLastAuthenticationException($request->getSession());
101101
$checkPath = $config->getCheckPath();
102-
$isRoute = strpos($checkPath, '/') === false;
102+
$isRoute = false === strpos($checkPath, '/');
103103

104104
return [
105105
'twoFactorProvider' => $token->getCurrentTwoFactorProvider(),
@@ -112,8 +112,8 @@ protected function getTemplateVars(Request $request, TwoFactorTokenInterface $to
112112
'isCsrfProtectionEnabled' => $config->isCsrfProtectionEnabled(),
113113
'csrfParameterName' => $config->getCsrfParameterName(),
114114
'csrfTokenId' => $config->getCsrfTokenId(),
115-
'checkPathRoute' => $isRoute ? $checkPath:null,
116-
'checkPathUrl' => $isRoute ? null:$checkPath,
115+
'checkPathRoute' => $isRoute ? $checkPath : null,
116+
'checkPathUrl' => $isRoute ? null : $checkPath,
117117
'logoutPath' => $this->logoutUrlGenerator->getLogoutPath(),
118118
];
119119
}

Security/Http/Authentication/AuthenticationRequiredHandlerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
declare(strict_types=1);
4+
45
namespace Scheb\TwoFactorBundle\Security\Http\Authentication;
56

67
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
 (0)