@@ -54,8 +54,7 @@ |
||
54 | 54 | * application instance will be returned |
55 | 55 | * @return mixed |
56 | 56 | */ |
57 | - function app(?string $identifier = null) |
|
58 | - { |
|
57 | + function app(?string $identifier = null) { |
|
59 | 58 | $app = Application::getInstance(); |
60 | 59 | |
61 | 60 | return $identifier ? $app->get($identifier) : $app; |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthorizationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthorizationMiddleware implements MiddlewareInterface { |
|
67 | 66 | |
68 | 67 | /** |
69 | 68 | * The Authorization instance |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | * @template T |
64 | 64 | */ |
65 | -class AuthenticationMiddleware implements MiddlewareInterface |
|
66 | -{ |
|
65 | +class AuthenticationMiddleware implements MiddlewareInterface { |
|
67 | 66 | |
68 | 67 | /** |
69 | 68 | * The Authentication instance |
@@ -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 | } |
@@ -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 |