Skip to content

Commit c38df8e

Browse files
committed
[CS] Remove @inheritdoc PHPDoc
1 parent 5dd38a8 commit c38df8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+0
-263
lines changed

Authentication/AuthenticationTrustResolver.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ public function isAuthenticated(TokenInterface $token = null): bool
2626
return $token && $token->getUser();
2727
}
2828

29-
/**
30-
* {@inheritdoc}
31-
*/
3229
public function isRememberMe(TokenInterface $token = null): bool
3330
{
3431
return $token && $token instanceof RememberMeToken;
3532
}
3633

37-
/**
38-
* {@inheritdoc}
39-
*/
4034
public function isFullFledged(TokenInterface $token = null): bool
4135
{
4236
return $this->isAuthenticated($token) && !$this->isRememberMe($token);

Authentication/RememberMe/CacheTokenVerifier.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct(CacheItemPoolInterface $cache, int $outdatedTokenTtl
3535
$this->cacheKeyPrefix = $cacheKeyPrefix;
3636
}
3737

38-
/**
39-
* {@inheritdoc}
40-
*/
4138
public function verifyToken(PersistentTokenInterface $token, #[\SensitiveParameter] string $tokenValue): bool
4239
{
4340
if (hash_equals($token->getTokenValue(), $tokenValue)) {
@@ -55,9 +52,6 @@ public function verifyToken(PersistentTokenInterface $token, #[\SensitiveParamet
5552
return hash_equals($outdatedToken, $tokenValue);
5653
}
5754

58-
/**
59-
* {@inheritdoc}
60-
*/
6155
public function updateExistingToken(PersistentTokenInterface $token, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed): void
6256
{
6357
// When a token gets updated, persist the outdated token for $outdatedTokenTtl seconds so we can

Authentication/RememberMe/InMemoryTokenProvider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class InMemoryTokenProvider implements TokenProviderInterface
2222
{
2323
private array $tokens = [];
2424

25-
/**
26-
* {@inheritdoc}
27-
*/
2825
public function loadTokenBySeries(string $series): PersistentTokenInterface
2926
{
3027
if (!isset($this->tokens[$series])) {
@@ -34,9 +31,6 @@ public function loadTokenBySeries(string $series): PersistentTokenInterface
3431
return $this->tokens[$series];
3532
}
3633

37-
/**
38-
* {@inheritdoc}
39-
*/
4034
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed)
4135
{
4236
if (!isset($this->tokens[$series])) {
@@ -53,17 +47,11 @@ public function updateToken(string $series, #[\SensitiveParameter] string $token
5347
$this->tokens[$series] = $token;
5448
}
5549

56-
/**
57-
* {@inheritdoc}
58-
*/
5950
public function deleteTokenBySeries(string $series)
6051
{
6152
unset($this->tokens[$series]);
6253
}
6354

64-
/**
65-
* {@inheritdoc}
66-
*/
6755
public function createNewToken(PersistentTokenInterface $token)
6856
{
6957
$this->tokens[$token->getSeries()] = $token;

Authentication/RememberMe/PersistentToken.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public function __construct(string $class, string $userIdentifier, string $serie
4646
$this->lastUsed = $lastUsed;
4747
}
4848

49-
/**
50-
* {@inheritdoc}
51-
*/
5249
public function getClass(): string
5350
{
5451
return $this->class;
@@ -59,25 +56,16 @@ public function getUserIdentifier(): string
5956
return $this->userIdentifier;
6057
}
6158

62-
/**
63-
* {@inheritdoc}
64-
*/
6559
public function getSeries(): string
6660
{
6761
return $this->series;
6862
}
6963

70-
/**
71-
* {@inheritdoc}
72-
*/
7364
public function getTokenValue(): string
7465
{
7566
return $this->tokenValue;
7667
}
7768

78-
/**
79-
* {@inheritdoc}
80-
*/
8169
public function getLastUsed(): \DateTime
8270
{
8371
return $this->lastUsed;

Authentication/Token/AbstractToken.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public function __construct(array $roles = [])
3838
}
3939
}
4040

41-
/**
42-
* {@inheritdoc}
43-
*/
4441
public function getRoleNames(): array
4542
{
4643
return $this->roleNames;
@@ -51,25 +48,16 @@ public function getUserIdentifier(): string
5148
return $this->user ? $this->user->getUserIdentifier() : '';
5249
}
5350

54-
/**
55-
* {@inheritdoc}
56-
*/
5751
public function getUser(): ?UserInterface
5852
{
5953
return $this->user;
6054
}
6155

62-
/**
63-
* {@inheritdoc}
64-
*/
6556
public function setUser(UserInterface $user)
6657
{
6758
$this->user = $user;
6859
}
6960

70-
/**
71-
* {@inheritdoc}
72-
*/
7361
public function eraseCredentials()
7462
{
7563
if ($this->getUser() instanceof UserInterface) {
@@ -119,33 +107,21 @@ public function __unserialize(array $data): void
119107
$this->user = \is_string($user) ? new InMemoryUser($user, '', $this->roleNames, false) : $user;
120108
}
121109

122-
/**
123-
* {@inheritdoc}
124-
*/
125110
public function getAttributes(): array
126111
{
127112
return $this->attributes;
128113
}
129114

130-
/**
131-
* {@inheritdoc}
132-
*/
133115
public function setAttributes(array $attributes)
134116
{
135117
$this->attributes = $attributes;
136118
}
137119

138-
/**
139-
* {@inheritdoc}
140-
*/
141120
public function hasAttribute(string $name): bool
142121
{
143122
return \array_key_exists($name, $this->attributes);
144123
}
145124

146-
/**
147-
* {@inheritdoc}
148-
*/
149125
public function getAttribute(string $name): mixed
150126
{
151127
if (!\array_key_exists($name, $this->attributes)) {
@@ -155,9 +131,6 @@ public function getAttribute(string $name): mixed
155131
return $this->attributes[$name];
156132
}
157133

158-
/**
159-
* {@inheritdoc}
160-
*/
161134
public function setAttribute(string $name, mixed $value)
162135
{
163136
$this->attributes[$name] = $value;

Authentication/Token/PreAuthenticatedToken.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,11 @@ public function getFirewallName(): string
4242
return $this->firewallName;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function __serialize(): array
4946
{
5047
return [null, $this->firewallName, parent::__serialize()];
5148
}
5249

53-
/**
54-
* {@inheritdoc}
55-
*/
5650
public function __unserialize(array $data): void
5751
{
5852
[, $this->firewallName, $parentData] = $data;

Authentication/Token/RememberMeToken.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,11 @@ public function getSecret(): string
5656
return $this->secret;
5757
}
5858

59-
/**
60-
* {@inheritdoc}
61-
*/
6259
public function __serialize(): array
6360
{
6461
return [$this->secret, $this->firewallName, parent::__serialize()];
6562
}
6663

67-
/**
68-
* {@inheritdoc}
69-
*/
7064
public function __unserialize(array $data): void
7165
{
7266
[$this->secret, $this->firewallName, $parentData] = $data;

Authentication/Token/Storage/TokenStorage.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class TokenStorage implements TokenStorageInterface, ResetInterface
2727
private ?TokenInterface $token = null;
2828
private ?\Closure $initializer = null;
2929

30-
/**
31-
* {@inheritdoc}
32-
*/
3330
public function getToken(): ?TokenInterface
3431
{
3532
if ($initializer = $this->initializer) {
@@ -40,9 +37,6 @@ public function getToken(): ?TokenInterface
4037
return $this->token;
4138
}
4239

43-
/**
44-
* {@inheritdoc}
45-
*/
4640
public function setToken(TokenInterface $token = null)
4741
{
4842
if ($token) {

Authentication/Token/Storage/UsageTrackingTokenStorage.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ public function __construct(TokenStorageInterface $storage, ContainerInterface $
3434
$this->container = $container;
3535
}
3636

37-
/**
38-
* {@inheritdoc}
39-
*/
4037
public function getToken(): ?TokenInterface
4138
{
4239
if ($this->shouldTrackUsage()) {
@@ -47,9 +44,6 @@ public function getToken(): ?TokenInterface
4744
return $this->storage->getToken();
4845
}
4946

50-
/**
51-
* {@inheritdoc}
52-
*/
5347
public function setToken(TokenInterface $token = null): void
5448
{
5549
$this->storage->setToken($token);

Authentication/Token/SwitchUserToken.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,11 @@ public function getOriginatedFromUri(): ?string
4747
return $this->originatedFromUri;
4848
}
4949

50-
/**
51-
* {@inheritdoc}
52-
*/
5350
public function __serialize(): array
5451
{
5552
return [$this->originalToken, $this->originatedFromUri, parent::__serialize()];
5653
}
5754

58-
/**
59-
* {@inheritdoc}
60-
*/
6155
public function __unserialize(array $data): void
6256
{
6357
if (3 > \count($data)) {

0 commit comments

Comments
 (0)