mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Fixed static analysis issues
This commit is contained in:
parent
d04d743520
commit
0dcdd252f5
4 changed files with 2 additions and 4 deletions
|
@ -52,7 +52,7 @@ class LogController extends AbstractController
|
|||
{
|
||||
protected EntityManagerInterface $entityManager;
|
||||
protected TimeTravel $timeTravel;
|
||||
protected EntityRepository $dbRepository;
|
||||
protected DBElementRepository $dbRepository;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager, TimeTravel $timeTravel)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,6 @@ final class LoginSuccessSubscriber implements EventSubscriberInterface
|
|||
|
||||
public function __construct(TranslatorInterface $translator, RequestStack $requestStack, EventLogger $eventLogger, bool $gpdr_compliance)
|
||||
{
|
||||
/** @var Session $session */
|
||||
$this->translator = $translator;
|
||||
$this->requestStack = $requestStack;
|
||||
$this->eventLogger = $eventLogger;
|
||||
|
|
|
@ -110,7 +110,7 @@ final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
|||
}
|
||||
|
||||
if (static::TFARedirectNeeded($user)) {
|
||||
$this->flashBag->add('warning', 'user.2fa_needed.flash');
|
||||
$flashBag->add('warning', 'user.2fa_needed.flash');
|
||||
}
|
||||
|
||||
$event->setResponse($this->httpUtils->createRedirectResponse($request, static::REDIRECT_TARGET));
|
||||
|
|
|
@ -42,7 +42,6 @@ class UpgradePermissionsSchemaSubscriber implements EventSubscriberInterface
|
|||
|
||||
public function __construct(Security $security, PermissionSchemaUpdater $permissionSchemaUpdater, EntityManagerInterface $entityManager, EventCommentHelper $eventCommentHelper)
|
||||
{
|
||||
/** @var Session $session */
|
||||
$this->security = $security;
|
||||
$this->permissionSchemaUpdater = $permissionSchemaUpdater;
|
||||
$this->entityManager = $entityManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue