Passed
Branch master (8c064e)
by Shiyu
02:26
created
Category
src/Chips/TransportSync.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         string $protocol,
30 30
         Closure $setter
31 31
     ) : void {
32
-        config()->watching($conf, static function (string $dsn) use ($scheme, $transport, $protocol, $setter) {
32
+        config()->watching($conf, static function(string $dsn) use ($scheme, $transport, $protocol, $setter) {
33 33
             // parsing dsn
34 34
             $parsed = parse_url($dsn);
35 35
 
Please login to merge, or discard this patch.
src/Transport/ZipkinHAV2.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             $endpoint
73 73
         );
74 74
 
75
-        $this->daemon = Timer::loop(self::BATCH_INV, function () {
75
+        $this->daemon = Timer::loop(self::BATCH_INV, function() {
76 76
             $this->submitting();
77 77
         });
78 78
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         Timer::clear($this->daemon);
86 86
 
87
-        $closing = function () {
87
+        $closing = function() {
88 88
             $this->client->closed()->pended() && $this->client->close();
89 89
         };
90 90
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function submitting(Closure $then = null) : void
119 119
     {
120
-        $this->spouting(co(function (array $spans) use ($then) {
120
+        $this->spouting(co(function(array $spans) use ($then) {
121 121
             $request = new Request(
122 122
                 'POST',
123 123
                 new Uri('http', $this->endpoint->host(), $this->endpoint->port(), self::API),
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
                     logger('traced')->notice(
136 136
                         'Server not accepting',
137 137
                         [
138
-                            'endpoint' => (string)$request->getUri(),
139
-                            'error' => sprintf('#%d->%s', $response->getStatusCode(), (string)$response->getBody()),
140
-                            'payload' => debug() ? (string)$request->getBody() : '[IGNORED]',
138
+                            'endpoint' => (string) $request->getUri(),
139
+                            'error' => sprintf('#%d->%s', $response->getStatusCode(), (string) $response->getBody()),
140
+                            'payload' => debug() ? (string) $request->getBody() : '[IGNORED]',
141 141
                         ]
142 142
                     );
143 143
                 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 logger('traced')->notice(
146 146
                     'Posting failed',
147 147
                     [
148
-                        'endpoint' => (string)$request->getUri(),
148
+                        'endpoint' => (string) $request->getUri(),
149 149
                         'error' => sprintf('%s::%s', get_class($e), $e->getMessage()),
150 150
                     ]
151 151
                 );
Please login to merge, or discard this patch.
src/Platform/Zipkin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             'zipkin',
63 63
             ZipkinHAV2::class,
64 64
             ZipkinJFV2::class,
65
-            function (Transport $transport = null, Protocol $protocol = null) {
65
+            function(Transport $transport = null, Protocol $protocol = null) {
66 66
                 $this->transport && $this->transport->disconnect();
67 67
                 $this->transport = $transport;
68 68
                 $this->protocol = $protocol;
Please login to merge, or discard this patch.
src/Protocol/ZipkinJFV2.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $this->extractEndpoint(EXT::LOCAL_ENDPOINT, 'localEndpoint', $tags, $data);
47 47
         $this->extractEndpoint(EXT::REMOTE_ENDPOINT, 'remoteEndpoint', $tags, $data);
48 48
 
49
-        array_walk($tags, function (string &$v) {
49
+        array_walk($tags, function(string &$v) {
50 50
             // values type convert .. do nothing
51 51
         });
52 52
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                 list($timestamp, $fields) = $log;
58 58
 
59 59
                 $items = [];
60
-                array_walk($fields, function ($v, $k) use (&$items) {
60
+                array_walk($fields, function($v, $k) use (&$items) {
61 61
                     $items[] = "{$k}={$v}";
62 62
                 });
63 63
 
Please login to merge, or discard this patch.
src/Components/Platforms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         DI::set(Platform::class, $zpk);
29 29
         DI::set(Observer::class, $zpk);
30 30
 
31
-        $app->stopping()->add(static function () use ($zpk) {
31
+        $app->stopping()->add(static function() use ($zpk) {
32 32
             return $zpk->leave();
33 33
         });
34 34
     }
Please login to merge, or discard this patch.