Applied symplify rules to codebase.

This commit is contained in:
Jan Böhmer 2020-01-05 22:49:00 +01:00
parent 2f20d90041
commit 388e847b17
136 changed files with 1370 additions and 789 deletions

View file

@ -32,13 +32,15 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
class U2FRegistrationSubscriber implements EventSubscriberInterface
final class U2FRegistrationSubscriber implements EventSubscriberInterface
{
protected $em;
protected $demo_mode;
protected $flashBag;
/** @var UrlGeneratorInterface */
/**
* @var UrlGeneratorInterface
*/
private $router;
public function __construct(UrlGeneratorInterface $router, EntityManagerInterface $entityManager, FlashBagInterface $flashBag, bool $demo_mode)
@ -49,7 +51,9 @@ class U2FRegistrationSubscriber implements EventSubscriberInterface
$this->flashBag = $flashBag;
}
/** @return string[] **/
/**
*
*/
public static function getSubscribedEvents(): array
{
return [