Fixed coding style.

This commit is contained in:
Jan Böhmer 2020-04-10 13:05:08 +02:00
parent a5e1f02d27
commit ae75e6844f
41 changed files with 147 additions and 163 deletions

View file

@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
*
@ -20,14 +23,12 @@
namespace App\Events;
use App\Entity\UserSystem\User;
use Symfony\Contracts\EventDispatcher\Event;
/**
* This event is triggered when something security related to a user happens.
* For example when the password is reset or the an two factor authentication method was disabled.
* @package App\Events
*/
class SecurityEvent extends Event
{
@ -41,10 +42,11 @@ class SecurityEvent extends Event
/**
* Returns the affected user.
*
* @return User
*/
public function getTargetUser()
{
return $this->targetUser;
}
}
}

View file

@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
*
@ -20,7 +23,6 @@
namespace App\Events;
class SecurityEvents
{
public const PASSWORD_CHANGED = 'security.password_changed';
@ -32,4 +34,4 @@ class SecurityEvents
public const GOOGLE_DISABLED = 'security.google_disabled';
public const TRUSTED_DEVICE_RESET = 'security.trusted_device_reset';
public const TFA_ADMIN_RESET = 'security.2fa_admin_reset';
}
}