Passed
Push — master ( 4413fc...ec2a41 )
by Shiyu
01:17
created
src/Utils/SpansCreator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Exception/UnsupportedCarrierInstance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Standard/Tracer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
src/Chips/UnsupportedHTTP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.