Skip to content

Commit

Permalink
[CS] Remove @inheritdoc PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Aug 25, 2022
1 parent 68b31b2 commit 2fd8656
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 45 deletions.
12 changes: 0 additions & 12 deletions CsrfTokenManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public function __construct(TokenGeneratorInterface $generator = null, TokenStor
}
}

/**
* {@inheritdoc}
*/
public function getToken(string $tokenId): CsrfToken
{
$namespacedId = $this->getNamespace().$tokenId;
Expand All @@ -82,9 +79,6 @@ public function getToken(string $tokenId): CsrfToken
return new CsrfToken($tokenId, $this->randomize($value));
}

/**
* {@inheritdoc}
*/
public function refreshToken(#[\SensitiveParameter] string $tokenId): CsrfToken
{
$namespacedId = $this->getNamespace().$tokenId;
Expand All @@ -95,17 +89,11 @@ public function refreshToken(#[\SensitiveParameter] string $tokenId): CsrfToken
return new CsrfToken($tokenId, $this->randomize($value));
}

/**
* {@inheritdoc}
*/
public function removeToken(string $tokenId): ?string
{
return $this->storage->removeToken($this->getNamespace().$tokenId);
}

/**
* {@inheritdoc}
*/
public function isTokenValid(CsrfToken $token): bool
{
$namespacedId = $this->getNamespace().$token->getId();
Expand Down
3 changes: 0 additions & 3 deletions TokenGenerator/UriSafeTokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public function __construct(int $entropy = 256)
$this->entropy = $entropy;
}

/**
* {@inheritdoc}
*/
public function generateToken(): string
{
// Generate an URI safe base64 encoded string that does not contain "+",
Expand Down
15 changes: 0 additions & 15 deletions TokenStorage/NativeSessionTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public function __construct(string $namespace = self::SESSION_NAMESPACE)
$this->namespace = $namespace;
}

/**
* {@inheritdoc}
*/
public function getToken(string $tokenId): string
{
if (!$this->sessionStarted) {
Expand All @@ -54,9 +51,6 @@ public function getToken(string $tokenId): string
return (string) $_SESSION[$this->namespace][$tokenId];
}

/**
* {@inheritdoc}
*/
public function setToken(string $tokenId, string $token)
{
if (!$this->sessionStarted) {
Expand All @@ -66,9 +60,6 @@ public function setToken(string $tokenId, string $token)
$_SESSION[$this->namespace][$tokenId] = $token;
}

/**
* {@inheritdoc}
*/
public function hasToken(string $tokenId): bool
{
if (!$this->sessionStarted) {
Expand All @@ -78,9 +69,6 @@ public function hasToken(string $tokenId): bool
return isset($_SESSION[$this->namespace][$tokenId]);
}

/**
* {@inheritdoc}
*/
public function removeToken(string $tokenId): ?string
{
if (!$this->sessionStarted) {
Expand All @@ -102,9 +90,6 @@ public function removeToken(string $tokenId): ?string
return $token;
}

/**
* {@inheritdoc}
*/
public function clear()
{
unset($_SESSION[$this->namespace]);
Expand Down
15 changes: 0 additions & 15 deletions TokenStorage/SessionTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ public function __construct(RequestStack $requestStack, string $namespace = self
$this->namespace = $namespace;
}

/**
* {@inheritdoc}
*/
public function getToken(string $tokenId): string
{
$session = $this->getSession();
Expand All @@ -59,9 +56,6 @@ public function getToken(string $tokenId): string
return (string) $session->get($this->namespace.'/'.$tokenId);
}

/**
* {@inheritdoc}
*/
public function setToken(string $tokenId, string $token)
{
$session = $this->getSession();
Expand All @@ -72,9 +66,6 @@ public function setToken(string $tokenId, string $token)
$session->set($this->namespace.'/'.$tokenId, $token);
}

/**
* {@inheritdoc}
*/
public function hasToken(string $tokenId): bool
{
$session = $this->getSession();
Expand All @@ -85,9 +76,6 @@ public function hasToken(string $tokenId): bool
return $session->has($this->namespace.'/'.$tokenId);
}

/**
* {@inheritdoc}
*/
public function removeToken(string $tokenId): ?string
{
$session = $this->getSession();
Expand All @@ -98,9 +86,6 @@ public function removeToken(string $tokenId): ?string
return $session->remove($this->namespace.'/'.$tokenId);
}

/**
* {@inheritdoc}
*/
public function clear()
{
$session = $this->getSession();
Expand Down

0 comments on commit 2fd8656

Please sign in to comment.