Fixed code style.

This commit is contained in:
Jan Böhmer 2020-01-04 20:24:09 +01:00
parent 1aed1d1d26
commit 9a7223a301
142 changed files with 534 additions and 716 deletions

View file

@ -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);
}
}
}