@@ -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 |
@@ -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 | }); |
@@ -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 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | return [ |
44 | 44 | MemoryReaderInterface::class => autowire(MemoryReader::class), |
45 | - ZendTypeReader::class => function () { |
|
45 | + ZendTypeReader::class => function() { |
|
46 | 46 | return new ZendTypeReader(ZendTypeReader::V80); |
47 | 47 | }, |
48 | 48 | SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class), |
@@ -54,15 +54,15 @@ discard block |
||
54 | 54 | ->constructorParameter('di_config_file', __DIR__ . '/di.php'), |
55 | 55 | PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class), |
56 | 56 | ProcessSearcherInterface::class => autowire(ProcessSearcher::class), |
57 | - Config::class => fn () => Config::load(__DIR__ . '/config.php'), |
|
57 | + Config::class => fn() => Config::load(__DIR__ . '/config.php'), |
|
58 | 58 | TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class), |
59 | - StateCollector::class => function (Container $container) { |
|
59 | + StateCollector::class => function(Container $container) { |
|
60 | 60 | $collectors = []; |
61 | 61 | $collectors[] = $container->make(ProcessStateCollector::class); |
62 | 62 | $collectors[] = $container->make(CallerStateCollector::class); |
63 | 63 | return new GroupedStateCollector(...$collectors); |
64 | 64 | }, |
65 | - LoggerInterface::class => function (Config $config) { |
|
65 | + LoggerInterface::class => function(Config $config) { |
|
66 | 66 | $logger = new Logger('default'); |
67 | 67 | $handler = new StreamHandler( |
68 | 68 | $config->get('log.path.default'), |
@@ -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 | 'v70' => new OpcodeV70($opcode), |
44 | 44 | 'v71' => new OpcodeV71($opcode), |
45 | 45 | 'v72' => new OpcodeV72($opcode), |
@@ -35,7 +35,7 @@ |
||
35 | 35 | return \pcntl_wifstopped($status); |
36 | 36 | } |
37 | 37 | |
38 | - public function wstopsig(int $status): int|false |
|
38 | + public function wstopsig(int $status): int | false |
|
39 | 39 | { |
40 | 40 | return \pcntl_wstopsig($status); |
41 | 41 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | ); |
74 | 74 | |
75 | 75 | $this->on_shutdown->register( |
76 | - function () use ($pid) { |
|
76 | + function() use ($pid) { |
|
77 | 77 | $this->pcntl->waitpid($pid, $status, 0); |
78 | 78 | } |
79 | 79 | ); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function ptrace( |
22 | 22 | PtraceRequest $request, |
23 | 23 | int $pid, |
24 | - Addressable|CData|null|int $addr, |
|
25 | - Addressable|CData|null|int $data, |
|
24 | + Addressable | CData | null | int $addr, |
|
25 | + Addressable | CData | null | int $data, |
|
26 | 26 | ): int; |
27 | 27 | } |