@@ -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; |
@@ -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 | } |
@@ -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 |