@@ -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 | } |
@@ -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 | } |
@@ -163,11 +163,11 @@ |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $data = [ |
| 166 | - 'id' => $user->id, |
|
| 167 | - 'username' => $user->username, |
|
| 168 | - 'lastname' => $user->lastname, |
|
| 169 | - 'firstname' => $user->firstname, |
|
| 170 | - 'permissions' => array_unique($permissions), |
|
| 166 | + 'id' => $user->id, |
|
| 167 | + 'username' => $user->username, |
|
| 168 | + 'lastname' => $user->lastname, |
|
| 169 | + 'firstname' => $user->firstname, |
|
| 170 | + 'permissions' => array_unique($permissions), |
|
| 171 | 171 | ]; |
| 172 | 172 | |
| 173 | 173 | $this->session->set('user', $data); |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | * class SessionAuthentication |
| 64 | 64 | * @package Platine\Framework\Auth\Authentication |
| 65 | 65 | */ |
| 66 | -class SessionAuthentication implements AuthenticationInterface |
|
| 67 | -{ |
|
| 66 | +class SessionAuthentication implements AuthenticationInterface { |
|
| 68 | 67 | /** |
| 69 | 68 | * The session instance to use |
| 70 | 69 | * @var Session |
@@ -41,8 +41,7 @@ |
||
| 41 | 41 | * @class HttpException |
| 42 | 42 | * @package Platine\Framework\Http\Exception |
| 43 | 43 | */ |
| 44 | -class HttpException extends Exception |
|
| 45 | -{ |
|
| 44 | +class HttpException extends Exception { |
|
| 46 | 45 | /** |
| 47 | 46 | * The instance of server request that throw this exception |
| 48 | 47 | * @var ServerRequestInterface |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class HttpSpecialException |
| 41 | 41 | * @package Platine\Framework\Http\Exception |
| 42 | 42 | */ |
| 43 | -abstract class HttpSpecialException extends HttpException |
|
| 44 | -{ |
|
| 43 | +abstract class HttpSpecialException extends HttpException { |
|
| 45 | 44 | /** |
| 46 | 45 | * Create new instance |
| 47 | 46 | * @param ServerRequestInterface $request |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpNotFoundException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpNotFoundException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpNotFoundException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |