mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-04 07:24:34 +02:00
Fixed code style.
This commit is contained in:
parent
1aed1d1d26
commit
9a7223a301
142 changed files with 534 additions and 716 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
namespace App\EventSubscriber;
|
||||
|
||||
|
||||
use App\Entity\UserSystem\U2FKey;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use R\U2FTwoFactorBundle\Event\RegisterEvent;
|
||||
|
@ -51,9 +50,9 @@ class U2FRegistrationSubscriber implements EventSubscriberInterface
|
|||
/** @return string[] **/
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'r_u2f_two_factor.register' => 'onRegister',
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
public function onRegister(RegisterEvent $event): void
|
||||
|
@ -78,4 +77,4 @@ class U2FRegistrationSubscriber implements EventSubscriberInterface
|
|||
$response = new RedirectResponse($this->router->generate('user_settings'));
|
||||
$event->setResponse($response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue