Passed
Pull Request — master (#1212)
by
unknown
12:02
created
src/Telemetry/src/Monolog/TelemetryProcessor.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,20 +14,20 @@
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         #[Proxy] private readonly ContainerInterface $container,
17
-    ) {}
17
+    ){}
18 18
 
19 19
     /**
20 20
      * @psalm-suppress InvalidReturnType
21 21
      * @psalm-suppress InvalidReturnStatement
22 22
      */
23
-    public function __invoke(LogRecord|array $record): array|LogRecord
23
+    public function __invoke(LogRecord | array $record): array | LogRecord
24 24
     {
25 25
         $tracer = $this->container->get(TracerInterface::class);
26 26
         \assert($tracer instanceof TracerInterface);
27 27
 
28 28
         $context = $tracer->getContext();
29 29
 
30
-        if (!empty($context)) {
30
+        if (!empty($context)){
31 31
             $record['extra']['telemetry'] = $context;
32 32
         }
33 33
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         #[Proxy] private readonly ContainerInterface $container,
17
-    ) {}
17
+    ) {
18
+}
18 19
 
19 20
     /**
20 21
      * @psalm-suppress InvalidReturnType
@@ -27,7 +28,8 @@  discard block
 block discarded – undo
27 28
 
28 29
         $context = $tracer->getContext();
29 30
 
30
-        if (!empty($context)) {
31
+        if (!empty($context))
32
+        {
31 33
             $record['extra']['telemetry'] = $context;
32 34
         }
33 35
 
Please login to merge, or discard this patch.