@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class DemoMiddleware |
| 57 | 57 | * @package Platine\App\Http\Middleware |
| 58 | 58 | */ |
| 59 | -class DemoMiddleware implements MiddlewareInterface |
|
| 60 | -{ |
|
| 59 | +class DemoMiddleware implements MiddlewareInterface { |
|
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
| 63 | 62 | */ |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class ConsoleServiceProvider |
| 56 | 56 | * @package Platine\App\Provider |
| 57 | 57 | */ |
| 58 | -class ConsoleServiceProvider extends ServiceProvider |
|
| 59 | -{ |
|
| 58 | +class ConsoleServiceProvider extends ServiceProvider { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class AppServiceProvider |
| 56 | 56 | * @package Platine\App\Provider |
| 57 | 57 | */ |
| 58 | -class AppServiceProvider extends ServiceProvider |
|
| 59 | -{ |
|
| 58 | +class AppServiceProvider extends ServiceProvider { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |
@@ -4,6 +4,6 @@ |
||
| 4 | 4 | use Platine\App\Http\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 | }]; |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | * @class HomeAction |
| 59 | 59 | * @package Platine\App\Http\Action |
| 60 | 60 | */ |
| 61 | -class HomeAction implements RequestHandlerInterface |
|
| 62 | -{ |
|
| 61 | +class HomeAction implements RequestHandlerInterface { |
|
| 63 | 62 | /** |
| 64 | 63 | * Create new instance |
| 65 | 64 | * @param Template $template |
@@ -54,14 +54,12 @@ |
||
| 54 | 54 | * @class ServerCommand |
| 55 | 55 | * @package Platine\App\Console\Command |
| 56 | 56 | */ |
| 57 | -class ServerCommand extends Command |
|
| 58 | -{ |
|
| 57 | +class ServerCommand extends Command { |
|
| 59 | 58 | /** |
| 60 | 59 | * Create new instance |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |
| 63 | - public function __construct(protected Shell $shell) |
|
| 64 | - { |
|
| 62 | + public function __construct(protected Shell $shell) { |
|
| 65 | 63 | parent::__construct('server', 'Command to manage PHP development server'); |
| 66 | 64 | $this->addOption('-a|--address', 'Server address', 'localhost', true); |
| 67 | 65 | $this->addOption('-p|--port', 'Server listen port', '8080', true); |
@@ -11,5 +11,5 @@ |
||
| 11 | 11 | 'response_timeout' => env('PL_MAIL_SMTP_RESPONSE_TIMEOUT', 10, 'int'), |
| 12 | 12 | 'username' => env('PL_MAIL_SMTP_USERNAME', ''), |
| 13 | 13 | 'password' => env('PL_MAIL_SMTP_PASSWORD', ''), |
| 14 | - ], |
|
| 14 | + ], |
|
| 15 | 15 | ]; |