@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class MissingCredentialsException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class MissingCredentialsException extends AuthenticationException |
|
41 | -{ |
|
40 | +class MissingCredentialsException extends AuthenticationException { |
|
42 | 41 | } |
@@ -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 AccountLockedException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class AccountLockedException extends AuthenticationException |
|
41 | -{ |
|
40 | +class AccountLockedException extends AuthenticationException { |
|
42 | 41 | } |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * class AuthorizationInterface |
52 | 52 | * @package Platine\Framework\Auth |
53 | 53 | */ |
54 | -interface AuthorizationInterface |
|
55 | -{ |
|
54 | +interface AuthorizationInterface { |
|
56 | 55 | |
57 | 56 | /** |
58 | 57 | * Check if user is granted the given permission |
@@ -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 |
@@ -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} |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | /** |
70 | 69 | * {@inheritdoc} |
71 | 70 | */ |
72 | - public function getId() |
|
73 | - { |
|
71 | + public function getId() { |
|
74 | 72 | return $this->mapper()->getColumn('id'); |
75 | 73 | } |
76 | 74 |
@@ -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} |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * class SessionAuthorization |
55 | 55 | * @package Platine\Framework\Auth\Authorization |
56 | 56 | */ |
57 | -class SessionAuthorization implements AuthorizationInterface |
|
58 | -{ |
|
57 | +class SessionAuthorization implements AuthorizationInterface { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * The session instance to use |