Passed
Pull Request — master (#52)
by Shinji
01:45
created
src/Command/Inspector/GetTraceCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
85 85
 
86 86
         $this->loop_provider->getMainLoop(
87
-            function () use (
87
+            function() use (
88 88
                 $get_trace_settings,
89 89
                 $target_process_settings,
90 90
                 $target_php_settings,
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 $formatter
95 95
             ): bool {
96 96
                 if ($loop_settings->stop_process and $this->process_stopper->stop($target_process_settings->pid)) {
97
-                    defer($_, fn () => $this->process_stopper->resume($target_process_settings->pid));
97
+                    defer($_, fn() => $this->process_stopper->resume($target_process_settings->pid));
98 98
                 }
99 99
                 $call_trace = $this->executor_globals_reader->readCallTrace(
100 100
                     $target_process_settings->pid,
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
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         Loop::onReadable(
101 101
             STDIN,
102 102
             /** @param resource $stream */
103
-            function (string $watcher_id, $stream) {
103
+            function(string $watcher_id, $stream) {
104 104
                 $key = fread($stream, 1);
105 105
                 if ($key === 'q') {
106 106
                     Loop::cancel($watcher_id);
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
                 }
109 109
             }
110 110
         );
111
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
111
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
112 112
             $promises = [];
113
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
113
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
114 114
                 while (1) {
115 115
                     Log::debug('receiving pid List');
116 116
                     $update_target_message = yield $searcher_context->receivePidList();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             });
125 125
             foreach ($worker_pool->getWorkers() as $reader) {
126 126
                 $promises[] = call(
127
-                    function () use ($reader, $dispatch_table, $output, $formatter) {
127
+                    function() use ($reader, $dispatch_table, $output, $formatter) {
128 128
                         while (1) {
129 129
                             $result = yield $reader->receiveTraceOrDetachWorker();
130 130
                             if ($result instanceof TraceMessage) {
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Worker/PhpReaderTraceLoop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
56 56
 
57 57
         $loop = $this->reader_loop_provider->getMainLoop(
58
-            function () use (
58
+            function() use (
59 59
                 $get_trace_settings,
60 60
                 $target_process_settings,
61 61
                 $target_php_settings,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $eg_address
64 64
             ): \Generator {
65 65
                 if ($loop_settings->stop_process and $this->process_stopper->stop($target_process_settings->pid)) {
66
-                    defer($_, fn () => $this->process_stopper->resume($target_process_settings->pid));
66
+                    defer($_, fn() => $this->process_stopper->resume($target_process_settings->pid));
67 67
                 }
68 68
                 $call_trace = $this->executor_globals_reader->readCallTrace(
69 69
                     $target_process_settings->pid,
Please login to merge, or discard this patch.
src/Lib/PhpProcessReader/PhpMemoryReader/ExecutorGlobalsReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             '::',
83 83
             array_filter(
84 84
                 $this->readFunctionName($pid, $php_version, $current_function->typed),
85
-                fn (string $item) => strlen($item)
85
+                fn(string $item) => strlen($item)
86 86
             )
87 87
         );
88 88
     }
Please login to merge, or discard this patch.