@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | public function __get(string $field_name): string |
| 40 | 40 | { |
| 41 | - return match ($field_name) { |
|
| 41 | + return match($field_name) { |
|
| 42 | 42 | 'value' => $this->value = substr( |
| 43 | 43 | \FFI::string($this->cdata->casted), |
| 44 | 44 | 0, |
@@ -94,7 +94,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** @var TargetPhpSettings<value-of<ZendTypeReader::ALL_SUPPORTED_VERSIONS>> $target_php_settings */ |
| 57 | 57 | $loop = $this->reader_loop_provider->getMainLoop( |
| 58 | - function () use ( |
|
| 58 | + function() use ( |
|
| 59 | 59 | $get_trace_settings, |
| 60 | 60 | $process_specifier, |
| 61 | 61 | $target_php_settings, |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $eg_address |
| 64 | 64 | ): Generator { |
| 65 | 65 | if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) { |
| 66 | - defer($_, fn () => $this->process_stopper->resume($process_specifier->pid)); |
|
| 66 | + defer($_, fn() => $this->process_stopper->resume($process_specifier->pid)); |
|
| 67 | 67 | } |
| 68 | 68 | $call_trace = $this->executor_globals_reader->readCallTrace( |
| 69 | 69 | $process_specifier->pid, |
@@ -54,7 +54,7 @@ |
||
| 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] |
@@ -64,7 +64,7 @@ |
||
| 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) { |