mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Fixed coding style.
This commit is contained in:
parent
a5e1f02d27
commit
ae75e6844f
41 changed files with 147 additions and 163 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue