@@ -39,6 +39,5 @@ |
||
39 | 39 | * @class AuthenticationException |
40 | 40 | * @package Platine\Framework\Auth\Exception |
41 | 41 | */ |
42 | -class AuthenticationException extends Exception |
|
43 | -{ |
|
42 | +class AuthenticationException extends Exception { |
|
44 | 43 | } |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class InvalidCredentialsException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class InvalidCredentialsException extends AuthenticationException |
|
41 | -{ |
|
40 | +class InvalidCredentialsException extends AuthenticationException { |
|
42 | 41 | } |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class AccountNotFoundException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class AccountNotFoundException extends AuthenticationException |
|
41 | -{ |
|
40 | +class AccountNotFoundException extends AuthenticationException { |
|
42 | 41 | } |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class AuthInvalidPasswordEvent |
55 | 55 | * @package Platine\Framework\Auth\Event |
56 | 56 | */ |
57 | -class AuthInvalidPasswordEvent extends Event |
|
58 | -{ |
|
57 | +class AuthInvalidPasswordEvent extends Event { |
|
59 | 58 | /** |
60 | 59 | * The authentication user |
61 | 60 | * @var User |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | * Create new instance |
67 | 66 | * @param User $user |
68 | 67 | */ |
69 | - public function __construct(User $user) |
|
70 | - { |
|
68 | + public function __construct(User $user) { |
|
71 | 69 | parent::__construct(__CLASS__, []); |
72 | 70 | $this->user = $user; |
73 | 71 | } |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class AuthLoginEvent |
55 | 55 | * @package Platine\Framework\Auth\Event |
56 | 56 | */ |
57 | -class AuthLoginEvent extends Event |
|
58 | -{ |
|
57 | +class AuthLoginEvent extends Event { |
|
59 | 58 | /** |
60 | 59 | * The authentication user |
61 | 60 | * @var User |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | * Create new instance |
67 | 66 | * @param User $user |
68 | 67 | */ |
69 | - public function __construct(User $user) |
|
70 | - { |
|
68 | + public function __construct(User $user) { |
|
71 | 69 | parent::__construct(__CLASS__, []); |
72 | 70 | $this->user = $user; |
73 | 71 | } |
@@ -56,14 +56,12 @@ |
||
56 | 56 | * @package Platine\Framework\Auth\Repository |
57 | 57 | * @extends Repository<Token> |
58 | 58 | */ |
59 | -class TokenRepository extends Repository |
|
60 | -{ |
|
59 | +class TokenRepository extends Repository { |
|
61 | 60 | /** |
62 | 61 | * Create new instance |
63 | 62 | * @param EntityManager<Token> $manager |
64 | 63 | */ |
65 | - public function __construct(EntityManager $manager) |
|
66 | - { |
|
64 | + public function __construct(EntityManager $manager) { |
|
67 | 65 | parent::__construct($manager, Token::class); |
68 | 66 | } |
69 | 67 | } |
@@ -56,14 +56,12 @@ |
||
56 | 56 | * @package Platine\Framework\Auth\Repository |
57 | 57 | * @extends Repository<Role> |
58 | 58 | */ |
59 | -class RoleRepository extends Repository |
|
60 | -{ |
|
59 | +class RoleRepository extends Repository { |
|
61 | 60 | /** |
62 | 61 | * Create new instance |
63 | 62 | * @param EntityManager<Role> $manager |
64 | 63 | */ |
65 | - public function __construct(EntityManager $manager) |
|
66 | - { |
|
64 | + public function __construct(EntityManager $manager) { |
|
67 | 65 | parent::__construct($manager, Role::class); |
68 | 66 | } |
69 | 67 | } |
@@ -56,14 +56,12 @@ |
||
56 | 56 | * @package Platine\Framework\Auth\Repository |
57 | 57 | * @extends Repository<User> |
58 | 58 | */ |
59 | -class UserRepository extends Repository |
|
60 | -{ |
|
59 | +class UserRepository extends Repository { |
|
61 | 60 | /** |
62 | 61 | * Create new instance |
63 | 62 | * @param EntityManager<User> $manager |
64 | 63 | */ |
65 | - public function __construct(EntityManager $manager) |
|
66 | - { |
|
64 | + public function __construct(EntityManager $manager) { |
|
67 | 65 | parent::__construct($manager, User::class); |
68 | 66 | } |
69 | 67 | } |
@@ -56,14 +56,12 @@ |
||
56 | 56 | * @package Platine\Framework\Auth\Repository |
57 | 57 | * @extends Repository<Permission> |
58 | 58 | */ |
59 | -class PermissionRepository extends Repository |
|
60 | -{ |
|
59 | +class PermissionRepository extends Repository { |
|
61 | 60 | /** |
62 | 61 | * Create new instance |
63 | 62 | * @param EntityManager<Permission> $manager |
64 | 63 | */ |
65 | - public function __construct(EntityManager $manager) |
|
66 | - { |
|
64 | + public function __construct(EntityManager $manager) { |
|
67 | 65 | parent::__construct($manager, Permission::class); |
68 | 66 | } |
69 | 67 | } |