@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * class AuthServiceProvider |
| 56 | 56 | * @package Platine\Framework\Service\Provider |
| 57 | 57 | */ |
| 58 | -class AuthServiceProvider extends ServiceProvider |
|
| 59 | -{ |
|
| 58 | +class AuthServiceProvider extends ServiceProvider { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
@@ -53,15 +53,13 @@ |
||
| 53 | 53 | * class RedirectResponse |
| 54 | 54 | * @package Platine\Framework\Http\Response |
| 55 | 55 | */ |
| 56 | -class RedirectResponse extends Response |
|
| 57 | -{ |
|
| 56 | +class RedirectResponse extends Response { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * Create new instance |
| 61 | 60 | * @param string $url |
| 62 | 61 | */ |
| 63 | - public function __construct(string $url = '/') |
|
| 64 | - { |
|
| 62 | + public function __construct(string $url = '/') { |
|
| 65 | 63 | parent::__construct(302); |
| 66 | 64 | $this->headers['Location'] = [$url]; |
| 67 | 65 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * class TemplateResponse |
| 55 | 55 | * @package Platine\Framework\Http\Response |
| 56 | 56 | */ |
| 57 | -class TemplateResponse extends Response |
|
| 58 | -{ |
|
| 57 | +class TemplateResponse extends Response { |
|
| 59 | 58 | |
| 60 | 59 | protected Template $template; |
| 61 | 60 | |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | * class Auth |
| 52 | 52 | * @package Platine\Framework\Auth |
| 53 | 53 | */ |
| 54 | -class Auth |
|
| 55 | -{ |
|
| 54 | +class Auth { |
|
| 56 | 55 | |
| 57 | 56 | } |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * class AuthenticationMiddleware |
| 62 | 62 | * @package Platine\Framework\Auth\Middleware |
| 63 | 63 | */ |
| 64 | -class AuthenticationMiddleware implements MiddlewareInterface |
|
| 65 | -{ |
|
| 64 | +class AuthenticationMiddleware implements MiddlewareInterface { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * The session instance to use |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * class AuthorizationMiddleware |
| 62 | 62 | * @package Platine\Framework\Auth\Middleware |
| 63 | 63 | */ |
| 64 | -class AuthorizationMiddleware implements MiddlewareInterface |
|
| 65 | -{ |
|
| 64 | +class AuthorizationMiddleware implements MiddlewareInterface { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * The session instance to use |