@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | Loop::onReadable( |
| 104 | 104 | STDIN, |
| 105 | 105 | /** @param resource $stream */ |
| 106 | - function (string $watcher_id, $stream) { |
|
| 106 | + function(string $watcher_id, $stream) { |
|
| 107 | 107 | $key = fread($stream, 1); |
| 108 | 108 | if ($key === 'q') { |
| 109 | 109 | Loop::cancel($watcher_id); |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | ); |
| 114 | - Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output) { |
|
| 114 | + Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output) { |
|
| 115 | 115 | $promises = []; |
| 116 | - $promises[] = call(function () use ($searcher_context, $dispatch_table) { |
|
| 116 | + $promises[] = call(function() use ($searcher_context, $dispatch_table) { |
|
| 117 | 117 | while (1) { |
| 118 | 118 | $update_target_message = yield $searcher_context->receivePidList(); |
| 119 | 119 | $dispatch_table->updateTargets($update_target_message->target_process_list); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | }); |
| 122 | 122 | foreach ($worker_pool->getWorkers() as $reader) { |
| 123 | 123 | $promises[] = call( |
| 124 | - function () use ($reader, $dispatch_table, $output) { |
|
| 124 | + function() use ($reader, $dispatch_table, $output) { |
|
| 125 | 125 | while (1) { |
| 126 | 126 | $result = yield $reader->receiveTraceOrDetachWorker(); |
| 127 | 127 | if ($result instanceof TraceMessage) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | use PhpProfiler\Lib\Amphp\WorkerEntryPointInterface; |
| 17 | 17 | use PhpProfiler\Lib\Amphp\MessageProtocolInterface; |
| 18 | 18 | |
| 19 | -return function (Channel $channel) use ($argv): \Generator { |
|
| 19 | +return function(Channel $channel) use ($argv): \Generator { |
|
| 20 | 20 | /** |
| 21 | 21 | * @var class-string<WorkerEntryPointInterface> $entry_class |
| 22 | 22 | * @var class-string<MessageProtocolInterface> $protocol_class |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings); |
| 52 | 52 | |
| 53 | 53 | $loop = $this->reader_loop_provider->getMainLoop( |
| 54 | - function () use ( |
|
| 54 | + function() use ( |
|
| 55 | 55 | $get_trace_settings, |
| 56 | 56 | $target_process_settings, |
| 57 | 57 | $target_php_settings, |