@@ -55,15 +55,13 @@ |
||
| 55 | 55 | * @class UserRepository |
| 56 | 56 | * @package Platine\Framework\Auth\Repository |
| 57 | 57 | */ |
| 58 | -class UserRepository extends Repository |
|
| 59 | -{ |
|
| 58 | +class UserRepository extends Repository { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param EntityManager $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 | } |
@@ -55,15 +55,13 @@ |
||
| 55 | 55 | * @class RoleRepository |
| 56 | 56 | * @package Platine\Framework\Auth\Repository |
| 57 | 57 | */ |
| 58 | -class RoleRepository extends Repository |
|
| 59 | -{ |
|
| 58 | +class RoleRepository extends Repository { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param EntityManager $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 | } |
@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * @class User |
| 56 | 56 | * @package Platine\Framework\Auth\Entity |
| 57 | 57 | */ |
| 58 | -class User extends Entity implements IdentityInterface |
|
| 59 | -{ |
|
| 58 | +class User extends Entity implements IdentityInterface { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
@@ -97,8 +96,7 @@ discard block |
||
| 97 | 96 | /** |
| 98 | 97 | * {@inheritdoc} |
| 99 | 98 | */ |
| 100 | - public function getId() |
|
| 101 | - { |
|
| 99 | + public function getId() { |
|
| 102 | 100 | return $this->mapper()->getColumn('id'); |
| 103 | 101 | } |
| 104 | 102 | |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class Permission |
| 55 | 55 | * @package Platine\Framework\Auth\Entity |
| 56 | 56 | */ |
| 57 | -class Permission extends Entity |
|
| 58 | -{ |
|
| 57 | +class Permission extends Entity { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class Role |
| 55 | 55 | * @package Platine\Framework\Auth\Entity |
| 56 | 56 | */ |
| 57 | -class Role extends Entity |
|
| 58 | -{ |
|
| 57 | +class Role extends Entity { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | * @class IdentityInterface |
| 52 | 52 | * @package Platine\Framework\Auth |
| 53 | 53 | */ |
| 54 | -interface IdentityInterface |
|
| 55 | -{ |
|
| 54 | +interface IdentityInterface { |
|
| 56 | 55 | |
| 57 | 56 | /** |
| 58 | 57 | * Return the id of the current user |
@@ -54,15 +54,13 @@ |
||
| 54 | 54 | * @class DatabaseConfigRepository |
| 55 | 55 | * @package Platine\Framework\Config\Model |
| 56 | 56 | */ |
| 57 | -class DatabaseConfigRepository extends Repository |
|
| 58 | -{ |
|
| 57 | +class DatabaseConfigRepository extends Repository { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * Create new instance |
| 62 | 61 | * @param EntityManager $manager |
| 63 | 62 | */ |
| 64 | - public function __construct(EntityManager $manager) |
|
| 65 | - { |
|
| 63 | + public function __construct(EntityManager $manager) { |
|
| 66 | 64 | parent::__construct($manager, ConfigEntity::class); |
| 67 | 65 | } |
| 68 | 66 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class ConfigEntity |
| 55 | 55 | * @package Platine\Framework\Config\Model |
| 56 | 56 | */ |
| 57 | -class ConfigEntity extends Entity |
|
| 58 | -{ |
|
| 57 | +class ConfigEntity extends Entity { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class DatabaseConfigLoaderInterface |
| 55 | 55 | * @package Platine\Framework\Config |
| 56 | 56 | */ |
| 57 | -interface DatabaseConfigLoaderInterface extends LoaderInterface |
|
| 58 | -{ |
|
| 57 | +interface DatabaseConfigLoaderInterface extends LoaderInterface { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * Load the configuration from database |