@@ -65,8 +65,7 @@ |
||
| 65 | 65 | * @package Platine\Framework\Http\Middleware |
| 66 | 66 | * @template T |
| 67 | 67 | */ |
| 68 | -class CsrfMiddleware implements MiddlewareInterface |
|
| 69 | -{ |
|
| 68 | +class CsrfMiddleware implements MiddlewareInterface { |
|
| 70 | 69 | |
| 71 | 70 | /** |
| 72 | 71 | * The configuration instance |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | $this->headers['Content-Description'] = ['File Transfer']; |
| 84 | 84 | $this->headers['Content-Type'] = [$mimetype]; |
| 85 | - $this->headers['Content-Disposition'] = ['attachment; filename="' . $filename . '"']; |
|
| 85 | + $this->headers['Content-Disposition'] = ['attachment; filename="' . $filename . '"']; |
|
| 86 | 86 | $this->headers['Expires'] = [0]; |
| 87 | 87 | $this->headers['Cache-Control'] = ['must-revalidate']; |
| 88 | 88 | $this->headers['Pragma'] = ['public']; |
@@ -55,16 +55,14 @@ |
||
| 55 | 55 | * @class FileResponse |
| 56 | 56 | * @package Platine\Framework\Http\Response |
| 57 | 57 | */ |
| 58 | -class FileResponse extends Response |
|
| 59 | -{ |
|
| 58 | +class FileResponse extends Response { |
|
| 60 | 59 | |
| 61 | 60 | /** |
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param string $path |
| 64 | 63 | * @param string|null $filename |
| 65 | 64 | */ |
| 66 | - public function __construct(string $path, ?string $filename = null) |
|
| 67 | - { |
|
| 65 | + public function __construct(string $path, ?string $filename = null) { |
|
| 68 | 66 | parent::__construct(200); |
| 69 | 67 | |
| 70 | 68 | $realpath = Path::realPath($path); |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class SecurityServiceProvider |
| 55 | 55 | * @package Platine\Framework\Service\Provider |
| 56 | 56 | */ |
| 57 | -class SecurityServiceProvider extends ServiceProvider |
|
| 58 | -{ |
|
| 57 | +class SecurityServiceProvider extends ServiceProvider { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @package Platine\Framework\Demo\Action |
| 58 | 58 | * @template T |
| 59 | 59 | */ |
| 60 | -class DownloadAction implements RequestHandlerInterface |
|
| 61 | -{ |
|
| 60 | +class DownloadAction implements RequestHandlerInterface { |
|
| 62 | 61 | |
| 63 | 62 | /** |
| 64 | 63 | * {@inheritodc} |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class CsrfTag |
| 58 | 58 | * @package Platine\Framework\Template\Tag |
| 59 | 59 | */ |
| 60 | -class CsrfTag extends AbstractTag |
|
| 61 | -{ |
|
| 60 | +class CsrfTag extends AbstractTag { |
|
| 62 | 61 | |
| 63 | 62 | /** |
| 64 | 63 | * {@inheritdoc} |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Platine\Framework\Demo\Action\HomeAction; |
| 5 | 5 | use Platine\Route\Router; |
| 6 | 6 | |
| 7 | -return [static function (Router $router): void { |
|
| 7 | +return [static function(Router $router): void { |
|
| 8 | 8 | $router->get('/', HomeAction::class, 'home'); |
| 9 | 9 | $router->get('/download', DownloadAction::class, 'download'); |
| 10 | 10 | }]; |