@@ -26,9 +26,9 @@ |
||
26 | 26 | { |
27 | 27 | protected function resolveLogManager(): void |
28 | 28 | { |
29 | - $configPath = __DIR__ . '/config/fluent.php'; |
|
29 | + $configPath = __DIR__.'/config/fluent.php'; |
|
30 | 30 | $this->mergeConfigFrom($configPath, 'fluent'); |
31 | - $this->app->singleton(FluentLogManager::class, function ($app) { |
|
31 | + $this->app->singleton(FluentLogManager::class, function($app) { |
|
32 | 32 | $app->configure('fluent'); |
33 | 33 | |
34 | 34 | return new FluentLogManager($app); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->resolveLogManager(); |
37 | 37 | /** @var LogManager $log */ |
38 | 38 | $log = $this->app[LoggerInterface::class]; |
39 | - $log->extend('fluent', function ($app, array $config) { |
|
39 | + $log->extend('fluent', function($app, array $config) { |
|
40 | 40 | $manager = $app->make(FluentLogManager::class); |
41 | 41 | |
42 | 42 | return $manager($config); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return new $fluentHandler( |
65 | 65 | new FluentLogger( |
66 | 66 | $configure['host'] ?? FluentLogger::DEFAULT_ADDRESS, |
67 | - (int)$configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT, |
|
67 | + (int) $configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT, |
|
68 | 68 | $configure['options'] ?? [], |
69 | 69 | $this->detectPacker($configure) |
70 | 70 | ), |
@@ -26,10 +26,10 @@ |
||
26 | 26 | { |
27 | 27 | protected function resolveLogManager(): void |
28 | 28 | { |
29 | - $configPath = __DIR__ . '/config/fluent.php'; |
|
29 | + $configPath = __DIR__.'/config/fluent.php'; |
|
30 | 30 | $this->mergeConfigFrom($configPath, 'fluent'); |
31 | 31 | $this->publishes([$configPath => config_path('fluent.php')], 'log'); |
32 | - $this->app->singleton(FluentLogManager::class, function ($app) { |
|
32 | + $this->app->singleton(FluentLogManager::class, function($app) { |
|
33 | 33 | return new FluentLogManager($app); |
34 | 34 | }); |
35 | 35 | } |