@@ -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, |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -69,17 +69,17 @@ |
||
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 | /** @template T @var Config<T> $config */ |
74 | 74 | $config = $app->get(Config::class); |
75 | 75 | $driver = $config->get('database.default', 'default'); |
76 | 76 | |
77 | 77 | return new Configuration($config->get('database.connections.' . $driver, [])); |
78 | 78 | }); |
79 | - $this->app->bind(Pool::class, function (ContainerInterface $app) { |
|
79 | + $this->app->bind(Pool::class, function(ContainerInterface $app) { |
|
80 | 80 | return new Pool($app->get(Config::class)->get('database', [])); |
81 | 81 | }); |
82 | - $this->app->share(Connection::class, function (ContainerInterface $app) { |
|
82 | + $this->app->share(Connection::class, function(ContainerInterface $app) { |
|
83 | 83 | return new Connection( |
84 | 84 | $app->get(Configuration::class), |
85 | 85 | $app->get(LoggerInterface::class) |