mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Fixed coding style.
This commit is contained in:
parent
24939f2342
commit
fd61c8d9e2
129 changed files with 962 additions and 1091 deletions
|
@ -82,8 +82,8 @@ final class U2FRegistrationSubscriber implements EventSubscriberInterface
|
|||
//Skip adding of U2F key on demo mode
|
||||
if (! $this->demo_mode) {
|
||||
$user = $event->getUser();
|
||||
if (!$user instanceof User) {
|
||||
throw new \InvalidArgumentException("Only User objects can be registered for U2F!");
|
||||
if (! $user instanceof User) {
|
||||
throw new \InvalidArgumentException('Only User objects can be registered for U2F!');
|
||||
}
|
||||
|
||||
$registration = $event->getRegistration();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue