@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | // is root |
116 | - $root = ! $context->has(CTX::G_SPAN); |
|
116 | + $root = !$context->has(CTX::G_SPAN); |
|
117 | 117 | |
118 | 118 | // new span |
119 | 119 | $context->set(CTX::G_SPAN, $span = $tracer->startSpan($name, SpanOptions::create($options))); |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | */ |
133 | 133 | protected function finishSpan(Promised $finished, Context $traced = null) : Promised |
134 | 134 | { |
135 | - $traced && $finished->then(function () use ($traced) { |
|
135 | + $traced && $finished->then(function() use ($traced) { |
|
136 | 136 | $this->closeSpan($traced); |
137 | - }, function (Throwable $e) use ($traced) { |
|
137 | + }, function(Throwable $e) use ($traced) { |
|
138 | 138 | $this->errorSpan($traced, $e); |
139 | 139 | }); |
140 | 140 | return $finished; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param string $type |
17 | 17 | * @return UnsupportedCarrierInstance |
18 | 18 | */ |
19 | - public static function for(string $type) : self |
|
19 | + public static function for (string $type) : self |
|
20 | 20 | { |
21 | 21 | return new self(sprintf('The carrier type \'%s\' is not supported.', $type)); |
22 | 22 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | if ($carrier instanceof MessageInterface) { |
85 | 85 | $this->platform->carrier()->http($carrier)->fusedContext($spanContext); |
86 | 86 | } else { |
87 | - throw UnsupportedCarrierInstance::for(gettype($carrier)); |
|
87 | + throw UnsupportedCarrierInstance::for (gettype($carrier)); |
|
88 | 88 | } |
89 | 89 | break; |
90 | 90 | default: |
@@ -16,6 +16,6 @@ |
||
16 | 16 | { |
17 | 17 | public function http(MessageInterface $message) : Carrier |
18 | 18 | { |
19 | - throw new UnsupportedCarrierException('HTTP in ' . get_class($this)); |
|
19 | + throw new UnsupportedCarrierException('HTTP in '.get_class($this)); |
|
20 | 20 | } |
21 | 21 | } |