@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * @package Platine\Framework\Http\Middleware |
| 62 | 62 | * @template T |
| 63 | 63 | */ |
| 64 | -class CorsMiddleware implements MiddlewareInterface |
|
| 65 | -{ |
|
| 64 | +class CorsMiddleware implements MiddlewareInterface { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * The configuration instance |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class JsonResponse |
| 55 | 55 | * @package Platine\Framework\Http\Response |
| 56 | 56 | */ |
| 57 | -class JsonResponse extends Response |
|
| 58 | -{ |
|
| 57 | +class JsonResponse extends Response { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * Create new instance |
@@ -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 | /** |
| 61 | 60 | * The template instance |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class JsonAction |
| 57 | 57 | * @package Platine\Framework\Demo\Action |
| 58 | 58 | */ |
| 59 | -class JsonAction implements RequestHandlerInterface |
|
| 60 | -{ |
|
| 59 | +class JsonAction implements RequestHandlerInterface { |
|
| 61 | 60 | |
| 62 | 61 | /** |
| 63 | 62 | * {@inheritodc} |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | use Platine\Framework\Demo\Action\JsonAction; |
| 6 | 6 | use Platine\Route\Router; |
| 7 | 7 | |
| 8 | -return [static function (Router $router): void { |
|
| 8 | +return [static function(Router $router): void { |
|
| 9 | 9 | $router->get('/', HomeAction::class, 'home'); |
| 10 | 10 | $router->get('/download', DownloadAction::class, 'download'); |
| 11 | - $router->group('/api', function (Router $router) { |
|
| 11 | + $router->group('/api', function(Router $router) { |
|
| 12 | 12 | $router->post('/json', JsonAction::class, 'api_json'); |
| 13 | 13 | }); |
| 14 | 14 | }]; |