@@ -38,11 +38,11 @@ |
||
| 38 | 38 | |
| 39 | 39 | $this->app->alias(ExceptionHandler::class, 'exceptions'); |
| 40 | 40 | $this->app->singleton('exceptions.repository', ExceptionHandlerRepository::class); |
| 41 | - $this->app->extend(ExceptionHandler::class, function ($handler, $app) use ($config) { |
|
| 41 | + $this->app->extend(ExceptionHandler::class, function($handler, $app) use ($config) { |
|
| 42 | 42 | return new Decorator($handler, $app['exceptions.repository'], $config); |
| 43 | 43 | }); |
| 44 | 44 | |
| 45 | - $this->app->singleton(Graylog::class, function ($app) use ($config) { |
|
| 45 | + $this->app->singleton(Graylog::class, function($app) use ($config) { |
|
| 46 | 46 | $transport = new UdpTransport( |
| 47 | 47 | $config->get('gelfsupport.host'), |
| 48 | 48 | $config->get('gelfsupport.port'), |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | protected function handlesException(Exception $e): Closure |
| 93 | 93 | { |
| 94 | - return function (Closure $handler) use ($e) { |
|
| 94 | + return function(Closure $handler) use ($e) { |
|
| 95 | 95 | $reflection = new ReflectionFunction($handler); |
| 96 | 96 | |
| 97 | 97 | if (!$params = $reflection->getParameters()) { |
@@ -14,4 +14,4 @@ |
||
| 14 | 14 | | |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -require __DIR__.'/vendor/autoload.php'; |
|
| 17 | +require __DIR__ . '/vendor/autoload.php'; |
|
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | $configuration = new Configuration(); |
| 29 | 29 | $config = $this->processConfiguration($configuration, $configs); |
| 30 | 30 | |
| 31 | - $container->setParameter('graylog.enabled', (bool)$config['graylog']['enabled']); |
|
| 32 | - $container->setParameter('graylog.host', (string)$config['graylog']['host']); |
|
| 33 | - $container->setParameter('graylog.port', (int)$config['graylog']['port']); |
|
| 31 | + $container->setParameter('graylog.enabled', (bool) $config['graylog']['enabled']); |
|
| 32 | + $container->setParameter('graylog.host', (string) $config['graylog']['host']); |
|
| 33 | + $container->setParameter('graylog.port', (int) $config['graylog']['port']); |
|
| 34 | 34 | } |
| 35 | 35 | } |