Passed
Branch 0.6.x (928e1f)
by Shinji
02:35
created
src/Command/Inspector/GetEgAddressCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         // see the comment at GetTraceCommand::execute()
69 69
         $eg_address = $this->retrying_loop_provider->do(
70
-            try: fn () => $this->php_globals_finder->findExecutorGlobals(
70
+            try: fn() => $this->php_globals_finder->findExecutorGlobals(
71 71
                 $process_specifier,
72 72
                 $target_php_settings
73 73
             ),
Please login to merge, or discard this patch.
src/Command/Inspector/TopLikeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         Loop::onReadable(
95 95
             STDIN,
96 96
             /** @param resource $stream */
97
-            function (string $watcher_id, $stream) {
97
+            function(string $watcher_id, $stream) {
98 98
                 $key = fread($stream, 1);
99 99
                 if ($key === 'q') {
100 100
                     Loop::cancel($watcher_id);
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
                 }
103 103
             }
104 104
         );
105
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $formatter) {
105
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $formatter) {
106 106
             $promises = [];
107
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
107
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
108 108
                 while (1) {
109 109
                     Log::debug('receiving pid List');
110 110
                     $update_target_message = yield $searcher_context->receivePidList();
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             });
119 119
             foreach ($worker_pool->getWorkers() as $reader) {
120 120
                 $promises[] = call(
121
-                    function () use ($reader, $dispatch_table, $formatter) {
121
+                    function() use ($reader, $dispatch_table, $formatter) {
122 122
                         while (1) {
123 123
                             $result = yield $reader->receiveTraceOrDetachWorker();
124 124
                             if ($result instanceof TraceMessage) {
Please login to merge, or discard this patch.
src/Command/Inspector/DaemonCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         Loop::onReadable(
97 97
             STDIN,
98 98
             /** @param resource $stream */
99
-            function (string $watcher_id, $stream) {
99
+            function(string $watcher_id, $stream) {
100 100
                 $key = fread($stream, 1);
101 101
                 if ($key === 'q') {
102 102
                     Loop::cancel($watcher_id);
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
                 }
105 105
             }
106 106
         );
107
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $trace_output) {
107
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $trace_output) {
108 108
             $promises = [];
109
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
109
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
110 110
                 while (1) {
111 111
                     Log::debug('receiving pid List');
112 112
                     $update_target_message = yield $searcher_context->receivePidList();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             });
121 121
             foreach ($worker_pool->getWorkers() as $reader) {
122 122
                 $promises[] = call(
123
-                    function () use ($reader, $dispatch_table, $trace_output) {
123
+                    function() use ($reader, $dispatch_table, $trace_output) {
124 124
                         while (1) {
125 125
                             $result = yield $reader->receiveTraceOrDetachWorker();
126 126
                             if ($result instanceof TraceMessage) {
Please login to merge, or discard this patch.
src/Command/Converter/SpeedscopeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
     /** @param iterable<CallTrace> $call_frames */
86 86
     private function collectFrames(iterable $call_frames): array
87 87
     {
88
-        $mapper = fn (array $value): string => \json_encode($value);
88
+        $mapper = fn(array $value): string => \json_encode($value);
89 89
         $trace_map = [];
90 90
         $result_frames = [];
91 91
         $sampled_stacks = [];
Please login to merge, or discard this patch.