@@ -65,9 +65,9 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $thread_pointer = $this->thread_pointer_retriever->getThreadPointer($pid); |
| 67 | 67 | |
| 68 | - [,,$thread_db_pthread_dtvp_offset] = $this->getLibThreadDbDescriptor('_thread_db_pthread_dtvp'); |
|
| 68 | + [,, $thread_db_pthread_dtvp_offset] = $this->getLibThreadDbDescriptor('_thread_db_pthread_dtvp'); |
|
| 69 | 69 | [$thread_db_dtv_dtv_size,,] = $this->getLibThreadDbDescriptor('_thread_db_dtv_dtv'); |
| 70 | - [,,$thread_db_dtv_t_pointer_val_offset] = $this->getLibThreadDbDescriptor('_thread_db_dtv_t_pointer_val'); |
|
| 70 | + [,, $thread_db_dtv_t_pointer_val_offset] = $this->getLibThreadDbDescriptor('_thread_db_dtv_t_pointer_val'); |
|
| 71 | 71 | // [,,] = $this->getLibThreadDbDescriptor($pid, '_thread_db_link_map_l_tls_modid'); |
| 72 | 72 | |
| 73 | 73 | $dtv_pointer_address = $thread_pointer + $thread_db_pthread_dtvp_offset; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | if ($address_and_size === null) { |
| 84 | 84 | return null; |
| 85 | 85 | } |
| 86 | - [$address,] = $address_and_size; |
|
| 86 | + [$address, ] = $address_and_size; |
|
| 87 | 87 | return $address; |
| 88 | 88 | } |
| 89 | 89 | |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings); |
| 122 | 122 | |
| 123 | 123 | $this->loop_provider->getMainLoop( |
| 124 | - function () use ($target_process_settings, $target_php_settings, $eg_address, $output): bool { |
|
| 124 | + function() use ($target_process_settings, $target_php_settings, $eg_address, $output): bool { |
|
| 125 | 125 | $output->writeln( |
| 126 | 126 | $this->executor_globals_reader->readCurrentFunctionName( |
| 127 | 127 | $target_process_settings->pid, |
@@ -16,4 +16,4 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** @var CallTrace $call_trace */ |
| 18 | 18 | |
| 19 | -echo CompatCallTraceFormatter::getInstance()->format($call_trace) , PHP_EOL; |
|
| 19 | +echo CompatCallTraceFormatter::getInstance()->format($call_trace), PHP_EOL; |
|
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | public function resolve(string $symbol_name): Elf64SymbolTableEntry |
| 69 | 69 | { |
| 70 | - $index = $this->hash_table->lookup($symbol_name, function (string $name, int $index) { |
|
| 70 | + $index = $this->hash_table->lookup($symbol_name, function(string $name, int $index) { |
|
| 71 | 71 | $symbol = $this->symbol_table->lookup($index); |
| 72 | 72 | return $name === $this->string_table->lookup($symbol->st_name); |
| 73 | 73 | }); |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | /** @var CallTrace $call_trace */ |
| 16 | 16 | ?> |
| 17 | 17 | <?php foreach ($call_trace->call_frames as $depth => $frame): ?> |
| 18 | -<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName() , "\n" ?> |
|
| 18 | +<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName(), "\n" ?> |
|
| 19 | 19 | <?php endforeach ?> |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function create(string $version, int $opcode): Opcode |
| 41 | 41 | { |
| 42 | - return match ($version) { |
|
| 42 | + return match($version) { |
|
| 43 | 43 | 'v71' => new OpcodeV71($opcode), |
| 44 | 44 | 'v72' => new OpcodeV72($opcode), |
| 45 | 45 | 'v73' => new OpcodeV73($opcode), |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | use PhpProfiler\Lib\Log\StateCollector\StateCollector; |
| 20 | 20 | use Psr\Log\LoggerInterface; |
| 21 | 21 | |
| 22 | -return function (Channel $channel) use ($argv): \Generator { |
|
| 22 | +return function(Channel $channel) use ($argv): \Generator { |
|
| 23 | 23 | /** |
| 24 | 24 | * @var class-string<WorkerEntryPointInterface> $entry_class |
| 25 | 25 | * @var class-string<MessageProtocolInterface> $protocol_class |
@@ -84,7 +84,7 @@ discard block |
||
| 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 |
||
| 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, |