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 ec1eb97 commit d541880
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 88 deletions.
3 changes: 0 additions & 3 deletions AccessMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public function add(RequestMatcherInterface $requestMatcher, array $attributes =
$this->map[] = [$requestMatcher, $attributes, $channel];
}

/**
* {@inheritdoc}
*/
public function getPatterns(Request $request): array
{
foreach ($this->map as $elements) {
Expand Down
3 changes: 0 additions & 3 deletions Authentication/CustomAuthenticationFailureHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public function __construct(AuthenticationFailureHandlerInterface $handler, arra
}
}

/**
* {@inheritdoc}
*/
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response
{
return $this->handler->onAuthenticationFailure($request, $exception);
Expand Down
3 changes: 0 additions & 3 deletions Authentication/CustomAuthenticationSuccessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public function __construct(AuthenticationSuccessHandlerInterface $handler, arra
}
}

/**
* {@inheritdoc}
*/
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
{
return $this->handler->onAuthenticationSuccess($request, $token);
Expand Down
3 changes: 0 additions & 3 deletions Authentication/DefaultAuthenticationFailureHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ public function setOptions(array $options)
$this->options = array_merge($this->defaultOptions, $options);
}

/**
* {@inheritdoc}
*/
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response
{
$options = $this->options;
Expand Down
3 changes: 0 additions & 3 deletions Authentication/DefaultAuthenticationSuccessHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ public function __construct(HttpUtils $httpUtils, array $options = [], LoggerInt
$this->setOptions($options);
}

/**
* {@inheritdoc}
*/
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
{
return $this->httpUtils->createRedirectResponse($request, $this->determineTargetUrl($request));
Expand Down
2 changes: 0 additions & 2 deletions Authenticator/AbstractLoginFormAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ abstract class AbstractLoginFormAuthenticator extends AbstractAuthenticator impl
abstract protected function getLoginUrl(Request $request): string;

/**
* {@inheritdoc}
*
* Override to change the request conditions that have to be
* matched in order to handle the login form submit.
*
Expand Down
8 changes: 0 additions & 8 deletions Authenticator/Token/PostAuthenticationToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public function __construct(UserInterface $user, string $firewallName, array $ro
/**
* This is meant to be only a token, where credentials
* have already been used and are thus cleared.
*
* {@inheritdoc}
*/
public function getCredentials(): mixed
{
Expand All @@ -57,17 +55,11 @@ public function getFirewallName(): string
return $this->firewallName;
}

/**
* {@inheritdoc}
*/
public function __serialize(): array
{
return [$this->firewallName, parent::__serialize()];
}

/**
* {@inheritdoc}
*/
public function __unserialize(array $data): void
{
[$this->firewallName, $parentData] = $data;
Expand Down
15 changes: 0 additions & 15 deletions Event/LazyResponseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public function __construct(parent $event)
$this->event = $event;
}

/**
* {@inheritdoc}
*/
public function setResponse(Response $response)
{
$this->stopPropagation();
Expand All @@ -42,33 +39,21 @@ public function setResponse(Response $response)
throw new LazyResponseException($response);
}

/**
* {@inheritdoc}
*/
public function getKernel(): HttpKernelInterface
{
return $this->event->getKernel();
}

/**
* {@inheritdoc}
*/
public function getRequest(): Request
{
return $this->event->getRequest();
}

/**
* {@inheritdoc}
*/
public function getRequestType(): int
{
return $this->event->getRequestType();
}

/**
* {@inheritdoc}
*/
public function isMainRequest(): bool
{
return $this->event->isMainRequest();
Expand Down
3 changes: 0 additions & 3 deletions Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ public function onKernelFinishRequest(FinishRequestEvent $event)
}
}

/**
* {@inheritdoc}
*/
public static function getSubscribedEvents()
{
return [
Expand Down
3 changes: 0 additions & 3 deletions Firewall/AccessListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public function __construct(TokenStorageInterface $tokenStorage, AccessDecisionM
$this->map = $map;
}

/**
* {@inheritdoc}
*/
public function supports(Request $request): ?bool
{
[$attributes] = $this->map->getPatterns($request);
Expand Down
3 changes: 0 additions & 3 deletions Firewall/ContextListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ public function __construct(TokenStorageInterface $tokenStorage, iterable $userP
$this->sessionTrackerEnabler = null === $sessionTrackerEnabler ? null : $sessionTrackerEnabler(...);
}

/**
* {@inheritdoc}
*/
public function supports(Request $request): ?bool
{
return null; // always run authenticate() lazily with lazy firewalls
Expand Down
3 changes: 0 additions & 3 deletions Firewall/LogoutListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public function __construct(TokenStorageInterface $tokenStorage, HttpUtils $http
$this->eventDispatcher = $eventDispatcher;
}

/**
* {@inheritdoc}
*/
public function supports(Request $request): ?bool
{
return $this->requiresLogout($request);
Expand Down
3 changes: 0 additions & 3 deletions Firewall/SwitchUserListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ public function __construct(TokenStorageInterface $tokenStorage, UserProviderInt
$this->targetUrl = $targetUrl;
}

/**
* {@inheritdoc}
*/
public function supports(Request $request): ?bool
{
// usernames can be falsy
Expand Down
3 changes: 0 additions & 3 deletions FirewallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public function add(RequestMatcherInterface $requestMatcher = null, array $liste
$this->map[] = [$requestMatcher, $listeners, $exceptionListener, $logoutListener];
}

/**
* {@inheritdoc}
*/
public function getListeners(Request $request): array
{
foreach ($this->map as $elements) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*/
class InvalidLoginLinkAuthenticationException extends AuthenticationException
{
/**
* {@inheritdoc}
*/
public function getMessageKey(): string
{
return 'Invalid or expired login link.';
Expand Down
6 changes: 0 additions & 6 deletions RememberMe/AbstractRememberMeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ public function __construct(UserProviderInterface $userProvider, RequestStack $r
*/
abstract protected function processRememberMe(RememberMeDetails $rememberMeDetails, UserInterface $user): void;

/**
* {@inheritdoc}
*/
public function consumeRememberMeCookie(RememberMeDetails $rememberMeDetails): UserInterface
{
try {
Expand All @@ -79,9 +76,6 @@ public function consumeRememberMeCookie(RememberMeDetails $rememberMeDetails): U
return $user;
}

/**
* {@inheritdoc}
*/
public function clearRememberMeCookie(): void
{
$this->logger?->debug('Clearing remember-me cookie.', ['name' => $this->options['name']]);
Expand Down
9 changes: 0 additions & 9 deletions RememberMe/PersistentRememberMeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public function __construct(TokenProviderInterface $tokenProvider, #[\SensitiveP
$this->secret = $secret;
}

/**
* {@inheritdoc}
*/
public function createRememberMeCookie(UserInterface $user): void
{
$series = base64_encode(random_bytes(64));
Expand All @@ -61,9 +58,6 @@ public function createRememberMeCookie(UserInterface $user): void
$this->createCookie(RememberMeDetails::fromPersistentToken($token, time() + $this->options['lifetime']));
}

/**
* {@inheritdoc}
*/
public function processRememberMe(RememberMeDetails $rememberMeDetails, UserInterface $user): void
{
if (!str_contains($rememberMeDetails->getValue(), ':')) {
Expand Down Expand Up @@ -99,9 +93,6 @@ public function processRememberMe(RememberMeDetails $rememberMeDetails, UserInte
$this->createCookie($rememberMeDetails->withValue($series.':'.$tokenValue));
}

/**
* {@inheritdoc}
*/
public function clearRememberMeCookie(): void
{
parent::clearRememberMeCookie();
Expand Down
3 changes: 0 additions & 3 deletions RememberMe/ResponseListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public function onKernelResponse(ResponseEvent $event)
}
}

/**
* {@inheritdoc}
*/
public static function getSubscribedEvents(): array
{
return [KernelEvents::RESPONSE => 'onKernelResponse'];
Expand Down
6 changes: 0 additions & 6 deletions RememberMe/SignatureRememberMeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public function __construct(SignatureHasher $signatureHasher, UserProviderInterf
$this->signatureHasher = $signatureHasher;
}

/**
* {@inheritdoc}
*/
public function createRememberMeCookie(UserInterface $user): void
{
$expires = time() + $this->options['lifetime'];
Expand All @@ -53,9 +50,6 @@ public function createRememberMeCookie(UserInterface $user): void
$this->createCookie($details);
}

/**
* {@inheritdoc}
*/
public function processRememberMe(RememberMeDetails $rememberMeDetails, UserInterface $user): void
{
try {
Expand Down
3 changes: 0 additions & 3 deletions Session/SessionAuthenticationStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public function __construct(string $strategy)
$this->strategy = $strategy;
}

/**
* {@inheritdoc}
*/
public function onAuthentication(Request $request, TokenInterface $token)
{
switch ($this->strategy) {
Expand Down

0 comments on commit d541880

Please sign in to comment.