Completed
Push — fix_docs ( d4089e )
by Shinji
02:36 queued 02:36
created
src/Inspector/Output/TopLike/TopLikeOutputter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $rows = [];
56 56
         $align_right = new TableCellStyle(['align' => 'right']);
57
-        $styled = fn (int|string $content, TableCellStyle $style): TableCell =>
57
+        $styled = fn(int | string $content, TableCellStyle $style): TableCell =>
58 58
             new TableCell(
59 59
                 (string)$content,
60 60
                 ['style' => $style]
Please login to merge, or discard this patch.
src/Inspector/Output/TopLike/Stat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function sort(): void
66 66
     {
67
-        \uasort($this->function_entries, function (FunctionEntry $a, FunctionEntry $b) {
67
+        \uasort($this->function_entries, function(FunctionEntry $a, FunctionEntry $b) {
68 68
             if ($b->count_exclusive === $a->count_exclusive) {
69 69
                 if ($b->count_inclusive === $a->count_inclusive) {
70 70
                     if ($b->total_count_exclusive === $a->total_count_exclusive) {
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/Inspector/GetTraceCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         // at this point. In that case the TLS block can't be located, then the address of EG can't
99 99
         // be found also. So simply retrying the whole process of finding EG here.
100 100
         $eg_address = $this->retrying_loop_provider->do(
101
-            try: fn () => $this->php_globals_finder->findExecutorGlobals(
101
+            try: fn() => $this->php_globals_finder->findExecutorGlobals(
102 102
                 $process_specifier,
103 103
                 $target_php_settings
104 104
             ),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         );
109 109
 
110 110
         $this->loop_provider->getMainLoop(
111
-            function () use (
111
+            function() use (
112 112
                 $get_trace_settings,
113 113
                 $process_specifier,
114 114
                 $target_php_settings,
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 $trace_output
118 118
             ): bool {
119 119
                 if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) {
120
-                    defer($_, fn () => $this->process_stopper->resume($process_specifier->pid));
120
+                    defer($_, fn() => $this->process_stopper->resume($process_specifier->pid));
121 121
                 }
122 122
                 $call_trace = $this->executor_globals_reader->readCallTrace(
123 123
                     $process_specifier->pid,
Please login to merge, or discard this patch.