@@ -63,8 +63,7 @@ discard block |
||
| 63 | 63 | * class HttpKernel |
| 64 | 64 | * @package Platine\Framework\Kernel |
| 65 | 65 | */ |
| 66 | -class HttpKernel implements RequestHandlerInterface |
|
| 67 | -{ |
|
| 66 | +class HttpKernel implements RequestHandlerInterface { |
|
| 68 | 67 | |
| 69 | 68 | /** |
| 70 | 69 | * The router instance |
@@ -89,8 +88,7 @@ discard block |
||
| 89 | 88 | * @param Application $app |
| 90 | 89 | * @param Router $router |
| 91 | 90 | */ |
| 92 | - public function __construct(Application $app, Router $router) |
|
| 93 | - { |
|
| 91 | + public function __construct(Application $app, Router $router) { |
|
| 94 | 92 | $this->app = $app; |
| 95 | 93 | $this->router = $router; |
| 96 | 94 | } |
@@ -54,14 +54,12 @@ |
||
| 54 | 54 | * class ConsoleKernel |
| 55 | 55 | * @package Platine\Framework\Kernel |
| 56 | 56 | */ |
| 57 | -class ConsoleKernel |
|
| 58 | -{ |
|
| 57 | +class ConsoleKernel { |
|
| 59 | 58 | |
| 60 | 59 | protected ConsoleApp $console; |
| 61 | 60 | protected Application $app; |
| 62 | 61 | |
| 63 | - public function __construct(Application $app, ConsoleApp $console) |
|
| 64 | - { |
|
| 62 | + public function __construct(Application $app, ConsoleApp $console) { |
|
| 65 | 63 | $this->app = $app; |
| 66 | 64 | $this->console = $console; |
| 67 | 65 | } |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | ServerRequestInterface $request, |
| 149 | 149 | RequestHandlerInterface $handler |
| 150 | 150 | ): ResponseInterface { |
| 151 | - set_error_handler(static function ( |
|
| 151 | + set_error_handler(static function( |
|
| 152 | 152 | int $severity, |
| 153 | 153 | string $message, |
| 154 | 154 | string $file, |
@@ -59,8 +59,7 @@ discard block |
||
| 59 | 59 | * class RouteDispatcherMiddleware |
| 60 | 60 | * @package Platine\Framework\Http\Middleware |
| 61 | 61 | */ |
| 62 | -class RouteDispatcherMiddleware implements MiddlewareInterface |
|
| 63 | -{ |
|
| 62 | +class RouteDispatcherMiddleware implements MiddlewareInterface { |
|
| 64 | 63 | |
| 65 | 64 | /** |
| 66 | 65 | * The Middleware resolver instance |
@@ -72,8 +71,7 @@ discard block |
||
| 72 | 71 | * Create new instance |
| 73 | 72 | * @param MiddlewareResolverInterface $resolver |
| 74 | 73 | */ |
| 75 | - public function __construct(MiddlewareResolverInterface $resolver) |
|
| 76 | - { |
|
| 74 | + public function __construct(MiddlewareResolverInterface $resolver) { |
|
| 77 | 75 | $this->resolver = $resolver; |
| 78 | 76 | } |
| 79 | 77 | |
@@ -58,8 +58,7 @@ discard block |
||
| 58 | 58 | * class SessionMiddleware |
| 59 | 59 | * @package Platine\Framework\Http\Middleware |
| 60 | 60 | */ |
| 61 | -class SessionMiddleware implements MiddlewareInterface |
|
| 62 | -{ |
|
| 61 | +class SessionMiddleware implements MiddlewareInterface { |
|
| 63 | 62 | |
| 64 | 63 | /** |
| 65 | 64 | * The application instance |
@@ -71,8 +70,7 @@ discard block |
||
| 71 | 70 | * Create new instance |
| 72 | 71 | * @param Application $app |
| 73 | 72 | */ |
| 74 | - public function __construct(Application $app) |
|
| 75 | - { |
|
| 73 | + public function __construct(Application $app) { |
|
| 76 | 74 | $this->app = $app; |
| 77 | 75 | } |
| 78 | 76 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | public function register(): void |
| 75 | 75 | { |
| 76 | 76 | $this->app->share('app', $this->app); |
| 77 | - $this->app->share(ConsoleApp::class, function () { |
|
| 77 | + $this->app->share(ConsoleApp::class, function() { |
|
| 78 | 78 | return new ConsoleApp('PLATINE CONSOLE', '1.6.8'); |
| 79 | 79 | }); |
| 80 | 80 | $this->app->instance($this->app); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $this->app->bind(ContainerInterface::class, $this->app); |
| 84 | 84 | $this->app->bind(ResolverInterface::class, ConstructorResolver::class); |
| 85 | 85 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
| 86 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 86 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 87 | 87 | return new ResponseEmitter( |
| 88 | 88 | $app->get(Config::class)->get('app.response_length', null) |
| 89 | 89 | ); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function register(): void |
| 68 | 68 | { |
| 69 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 69 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 70 | 70 | return new Configuration($app->get(Config::class)->get('session', [])); |
| 71 | 71 | }); |
| 72 | 72 | $this->app->bind(Session::class); |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | * class SessionServiceProvider |
| 59 | 59 | * @package Platine\Framework\Service\Provider |
| 60 | 60 | */ |
| 61 | -class SessionServiceProvider extends ServiceProvider |
|
| 62 | -{ |
|
| 61 | +class SessionServiceProvider extends ServiceProvider { |
|
| 63 | 62 | |
| 64 | 63 | /** |
| 65 | 64 | * {@inheritdoc} |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function register(): void |
| 71 | 71 | { |
| 72 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 72 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 73 | 73 | return new Configuration($app->get(Config::class)->get('template', [])); |
| 74 | 74 | }); |
| 75 | 75 | $this->app->bind(AbstractCache::class, NullCache::class); |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * class TemplateServiceProvider |
| 62 | 62 | * @package Platine\Framework\Service\Provider |
| 63 | 63 | */ |
| 64 | -class TemplateServiceProvider extends ServiceProvider |
|
| 65 | -{ |
|
| 64 | +class TemplateServiceProvider extends ServiceProvider { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * {@inheritdoc} |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function register(): void |
| 69 | 69 | { |
| 70 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 70 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 71 | 71 | return new Configuration($app->get(Config::class)->get('cache', [])); |
| 72 | 72 | }); |
| 73 | 73 | $this->app->bind(AdapterInterface::class); |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * class CacheServiceProvider |
| 60 | 60 | * @package Platine\Framework\Service\Provider |
| 61 | 61 | */ |
| 62 | -class CacheServiceProvider extends ServiceProvider |
|
| 63 | -{ |
|
| 62 | +class CacheServiceProvider extends ServiceProvider { |
|
| 64 | 63 | |
| 65 | 64 | /** |
| 66 | 65 | * {@inheritdoc} |