Skip to content

Commit 95ff3a4

Browse files
fabpotnicolas-grekas
authored andcommitted
Remove unneeded phpdocs
1 parent 2807632 commit 95ff3a4

File tree

8 files changed

+14
-24
lines changed

8 files changed

+14
-24
lines changed

Authentication/AuthenticationManagerInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ interface AuthenticationManagerInterface
2525
/**
2626
* Attempts to authenticate a TokenInterface object.
2727
*
28-
* @param TokenInterface $token The TokenInterface instance to authenticate
29-
*
3028
* @return TokenInterface An authenticated TokenInterface instance, never null
3129
*
3230
* @throws AuthenticationException if the authentication fails

Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ private function getRoles(UserInterface $user, TokenInterface $token): array
128128
/**
129129
* Retrieves the user from an implementation-specific location.
130130
*
131-
* @param string $username The username to retrieve
132-
* @param UsernamePasswordToken $token The Token
131+
* @param string $username The username to retrieve
133132
*
134133
* @return UserInterface The user
135134
*

Authentication/Token/RememberMeToken.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ class RememberMeToken extends AbstractToken
2424
private $providerKey;
2525

2626
/**
27-
* @param UserInterface $user
28-
* @param string $providerKey
29-
* @param string $secret A secret used to make sure the token is created by the app and not by a malicious client
27+
* @param string $providerKey
28+
* @param string $secret A secret used to make sure the token is created by the app and not by a malicious client
3029
*
3130
* @throws \InvalidArgumentException
3231
*/

Authentication/Token/SwitchUserToken.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ class SwitchUserToken extends UsernamePasswordToken
2121
private $originalToken;
2222

2323
/**
24-
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
25-
* @param mixed $credentials This usually is the password of the user
26-
* @param string $providerKey The provider key
27-
* @param string[] $roles An array of roles
28-
* @param TokenInterface $originalToken The token of the user who switched to the current user
24+
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
25+
* @param mixed $credentials This usually is the password of the user
26+
* @param string $providerKey The provider key
27+
* @param string[] $roles An array of roles
2928
*
3029
* @throws \InvalidArgumentException
3130
*/

Authorization/TraceableAccessDecisionManager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
7070
/**
7171
* Adds voter vote and class to the voter details.
7272
*
73-
* @param VoterInterface $voter voter
74-
* @param array $attributes attributes used for the vote
75-
* @param int $vote vote of the voter
73+
* @param array $attributes attributes used for the vote
74+
* @param int $vote vote of the voter
7675
*/
7776
public function addVoterVote(VoterInterface $voter, array $attributes, int $vote)
7877
{

Authorization/Voter/Voter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ abstract protected function supports($attribute, $subject);
6060
* Perform a single access check operation on a given attribute, subject and token.
6161
* It is safe to assume that $attribute and $subject already passed the "supports()" method check.
6262
*
63-
* @param string $attribute
64-
* @param mixed $subject
65-
* @param TokenInterface $token
63+
* @param string $attribute
64+
* @param mixed $subject
6665
*
6766
* @return bool
6867
*/

Encoder/UserPasswordEncoderInterface.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ interface UserPasswordEncoderInterface
2525
/**
2626
* Encodes the plain password.
2727
*
28-
* @param UserInterface $user The user
29-
* @param string $plainPassword The password to encode
28+
* @param string $plainPassword The password to encode
3029
*
3130
* @return string The encoded password
3231
*/
3332
public function encodePassword(UserInterface $user, $plainPassword);
3433

3534
/**
36-
* @param UserInterface $user The user
37-
* @param string $raw A raw password
35+
* @param string $raw A raw password
3836
*
3937
* @return bool true if the password is valid, false otherwise
4038
*/

Role/SwitchUserRole.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class SwitchUserRole extends Role
2727
private $source;
2828

2929
/**
30-
* @param string $role The role as a string
31-
* @param TokenInterface $source The original token
30+
* @param string $role The role as a string
3231
*/
3332
public function __construct(string $role, TokenInterface $source)
3433
{

0 commit comments

Comments
 (0)