Skip to content

Commit 25d14fa

Browse files
committed
Fix CS
1 parent ed2fc17 commit 25d14fa

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Authentication/AuthenticationTrustResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function isAuthenticated(TokenInterface $token = null): bool
3232
/**
3333
* {@inheritdoc}
3434
*/
35-
public function isAnonymous(TokenInterface $token = null/*, $deprecation = true*/)
35+
public function isAnonymous(TokenInterface $token = null/* , $deprecation = true */)
3636
{
3737
if (1 === \func_num_args() || false !== func_get_arg(1)) {
3838
trigger_deprecation('symfony/security-core', '5.4', 'The "%s()" method is deprecated, use "isAuthenticated()" or "isFullFledged()" if you want to check if the request is (fully) authenticated.', __METHOD__);

Authentication/Token/PreAuthenticatedToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PreAuthenticatedToken extends AbstractToken
2828
* @param string $firewallName
2929
* @param string[] $roles
3030
*/
31-
public function __construct($user, /*string*/ $firewallName, /*array*/ $roles = [])
31+
public function __construct($user, /* string */ $firewallName, /* array */ $roles = [])
3232
{
3333
if (\is_string($roles)) {
3434
trigger_deprecation('symfony/security-core', '5.4', 'Argument $credentials of "%s()" is deprecated.', __METHOD__);

Authentication/Token/SwitchUserToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SwitchUserToken extends UsernamePasswordToken
2929
*
3030
* @throws \InvalidArgumentException
3131
*/
32-
public function __construct($user, /*string*/ $firewallName, /*array*/ $roles, /*TokenInterface*/ $originalToken, /*string*/ $originatedFromUri = null)
32+
public function __construct($user, /* string */ $firewallName, /* array */ $roles, /* TokenInterface */ $originalToken, /* string */ $originatedFromUri = null)
3333
{
3434
if (\is_string($roles)) {
3535
// @deprecated since 5.4, deprecation is triggered by UsernamePasswordToken::__construct()

Authentication/Token/UsernamePasswordToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UsernamePasswordToken extends AbstractToken
2929
*
3030
* @throws \InvalidArgumentException
3131
*/
32-
public function __construct($user, /*string*/ $firewallName, /*array*/ $roles = [])
32+
public function __construct($user, /* string */ $firewallName, /* array */ $roles = [])
3333
{
3434
if (\is_string($roles)) {
3535
trigger_deprecation('symfony/security-core', '5.4', 'The $credentials argument of "%s" is deprecated.', static::class.'::__construct');

Authorization/AuthorizationChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AuthorizationChecker implements AuthorizationCheckerInterface
3232
private $alwaysAuthenticate;
3333
private $exceptionOnNoToken;
3434

35-
public function __construct(TokenStorageInterface $tokenStorage, /*AccessDecisionManagerInterface*/ $accessDecisionManager, /*bool*/ $alwaysAuthenticate = false, /*bool*/ $exceptionOnNoToken = true)
35+
public function __construct(TokenStorageInterface $tokenStorage, /* AccessDecisionManagerInterface */ $accessDecisionManager, /* bool */ $alwaysAuthenticate = false, /* bool */ $exceptionOnNoToken = true)
3636
{
3737
if ($accessDecisionManager instanceof AuthenticationManagerInterface) {
3838
trigger_deprecation('symfony/security-core', '5.4', 'The $autenticationManager argument of "%s" is deprecated.', __METHOD__);

User/InMemoryUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function supportsClass(string $class)
130130
*
131131
* @throws UserNotFoundException if user whose given username does not exist
132132
*/
133-
private function getUser(string $username)/*: InMemoryUser */
133+
private function getUser(string $username)/* : InMemoryUser */
134134
{
135135
if (!isset($this->users[strtolower($username)])) {
136136
$ex = new UserNotFoundException(sprintf('Username "%s" does not exist.', $username));

0 commit comments

Comments
 (0)