Passed
Push — main ( de6041...10d7c5 )
by yuuki
10:31 queued 13s
created
src/LumenLogServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/LogServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/LoggableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $this->resolveLogManager();
41 41
         /** @var LogManager $log */
42 42
         $log = $this->app->make(LoggerInterface::class);
43
-        $log->extend('fluent', function ($app, array $config) {
43
+        $log->extend('fluent', function($app, array $config) {
44 44
             $manager = $app->make(FluentLogManager::class);
45 45
 
46 46
             return $manager($config);
Please login to merge, or discard this patch.
src/FluentLogManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $handler = new $fluentHandler(
68 68
             new FluentLogger(
69 69
                 $configure['host'] ?? FluentLogger::DEFAULT_ADDRESS,
70
-                (int)$configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT,
70
+                (int) $configure['port'] ?? FluentLogger::DEFAULT_LISTEN_PORT,
71 71
                 $configure['options'] ?? [],
72 72
                 $this->detectPacker($configure)
73 73
             ),
Please login to merge, or discard this patch.
src/FluentHandler.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,6 @@
 block discarded – undo
131 131
      * Returns the entire exception trace as a string
132 132
      *
133 133
      * @param  array{'exception': Exception} $context
134
-
135 134
      * @return string
136 135
      */
137 136
     protected function getContextExceptionTrace(array $context): string
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function __construct(
51 51
         protected LoggerInterface $logger,
52 52
         string $tagFormat = null,
53
-        Level|int|string $level = Level::Debug,
53
+        Level | int | string $level = Level::Debug,
54 54
         bool $bubble = true
55 55
     ) {
56 56
         if ($tagFormat !== null) {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @return array<string, mixed>|string
105 105
      */
106
-    protected function getContext(array $context): array|string
106
+    protected function getContext(array $context): array | string
107 107
     {
108 108
         if ($this->contextHasException($context)) {
109 109
             return $this->getContextExceptionTrace($context);
Please login to merge, or discard this patch.