File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
namespace Jaeger \Symfony \Bridge ;
5
3
6
4
use Jaeger \Tracer \TracerInterface ;
@@ -19,7 +17,12 @@ public function __construct(TracerInterface $tracer)
19
17
$ this ->tracer = $ tracer ;
20
18
}
21
19
22
- public function getStartTime (Request $ request ): int
20
+ /**
21
+ * @param Request $request
22
+ *
23
+ * @return int
24
+ */
25
+ public function getStartTime (Request $ request )
23
26
{
24
27
return (int )($ request ->server ->get ('REQUEST_TIME_FLOAT ' , microtime (true )) * 1000000 );
25
28
}
Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
namespace Jaeger \Symfony \Bridge ;
5
3
6
4
use Jaeger \Codec \CodecInterface ;
@@ -34,9 +32,9 @@ public function __construct(
34
32
InjectableInterface $ injectable ,
35
33
TracerInterface $ tracer ,
36
34
CodecRegistry $ registry ,
37
- string $ format ,
38
- string $ envName ,
39
- string $ headerName
35
+ $ format ,
36
+ $ envName ,
37
+ $ headerName
40
38
) {
41
39
$ this ->injectable = $ injectable ;
42
40
$ this ->tracer = $ tracer ;
@@ -56,7 +54,7 @@ public static function getSubscribedEvents()
56
54
57
55
public function onCommand ()
58
56
{
59
- if (($ data = $ _ENV [$ this ->envName ] ?? null )
57
+ if (($ data = $ _ENV [$ this ->envName ] ? $ _ENV [ $ this -> envName ]: null )
60
58
&& $ context = $ this ->registry [$ this ->format ]->decode ($ data )) {
61
59
$ this ->injectable ->assign ($ context );
62
60
}
Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
namespace Jaeger \Symfony \Bridge ;
5
3
6
4
use Jaeger \Http \HttpCodeTag ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
-
4
2
namespace Jaeger \Symfony \Bridge ;
5
3
6
4
use Jaeger \Tracer \FlushableInterface ;
@@ -20,8 +18,8 @@ public function __construct(FlushableInterface $tracer)
20
18
public static function getSubscribedEvents ()
21
19
{
22
20
return [
23
- ConsoleEvents::TERMINATE => [[ 'onTerminate ' ] ],
24
- KernelEvents::TERMINATE => [[ 'onTerminate ' ] ],
21
+ ConsoleEvents::TERMINATE => ['onTerminate ' ],
22
+ KernelEvents::TERMINATE => ['onTerminate ' ],
25
23
];
26
24
}
27
25
You can’t perform that action at this time.
0 commit comments