@@ -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;  | 
                                                        
@@ -81,7 +81,7 @@  | 
                                                    ||
| 81 | 81 | */  | 
                                                        
| 82 | 82 | public function resolve(string $symbol_name): Elf64SymbolTableEntry  | 
                                                        
| 83 | 83 |      { | 
                                                        
| 84 | -        $index = $this->hash_table->lookup($symbol_name, function (string $name, int $index) { | 
                                                        |
| 84 | +        $index = $this->hash_table->lookup($symbol_name, function(string $name, int $index) { | 
                                                        |
| 85 | 85 | $symbol = $this->symbol_table->lookup($index);  | 
                                                        
| 86 | 86 | return $name === $this->string_table->lookup($symbol->st_name);  | 
                                                        
| 87 | 87 | });  | 
                                                        
@@ -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 | |
@@ -23,7 +23,7 @@  | 
                                                    ||
| 23 | 23 | |
| 24 | 24 | return [  | 
                                                        
| 25 | 25 | MemoryReaderInterface::class => autowire(MemoryReader::class),  | 
                                                        
| 26 | -    ZendTypeReader::class => function () { | 
                                                        |
| 26 | +    ZendTypeReader::class => function() { | 
                                                        |
| 27 | 27 | return new ZendTypeReader(ZendTypeReader::V74);  | 
                                                        
| 28 | 28 | },  | 
                                                        
| 29 | 29 | SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class),  | 
                                                        
@@ -124,7 +124,7 @@  | 
                                                    ||
| 124 | 124 | $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);  | 
                                                        
| 125 | 125 | |
| 126 | 126 | $this->loop_provider->getMainLoop(  | 
                                                        
| 127 | - function () use (  | 
                                                        |
| 127 | + function() use (  | 
                                                        |
| 128 | 128 | $get_trace_settings,  | 
                                                        
| 129 | 129 | $target_process_settings,  | 
                                                        
| 130 | 130 | $target_php_settings,  | 
                                                        
@@ -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,  | 
                                                        
@@ -138,11 +138,11 @@ discard block  | 
                                                    ||
| 138 | 138 | |
| 139 | 139 |          exec('stty -icanon -echo'); | 
                                                        
| 140 | 140 | |
| 141 | -        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output) { | 
                                                        |
| 141 | +        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output) { | 
                                                        |
| 142 | 142 | Loop::onReadable(  | 
                                                        
| 143 | 143 | STDIN,  | 
                                                        
| 144 | 144 | /** @param resource $stream */  | 
                                                        
| 145 | -                function (string $watcher_id, $stream) { | 
                                                        |
| 145 | +                function(string $watcher_id, $stream) { | 
                                                        |
| 146 | 146 | $key = fread($stream, 1);  | 
                                                        
| 147 | 147 |                      if ($key === 'q') { | 
                                                        
| 148 | 148 | Loop::cancel($watcher_id);  | 
                                                        
@@ -150,11 +150,11 @@ discard block  | 
                                                    ||
| 150 | 150 | }  | 
                                                        
| 151 | 151 | }  | 
                                                        
| 152 | 152 | );  | 
                                                        
| 153 | -            Loop::repeat(10, function () use ($dispatch_table, $searcher_context, $worker_pool, $output) { | 
                                                        |
| 153 | +            Loop::repeat(10, function() use ($dispatch_table, $searcher_context, $worker_pool, $output) { | 
                                                        |
| 154 | 154 | $promises = [];  | 
                                                        
| 155 | 155 | static $searcher_on_read = false;  | 
                                                        
| 156 | 156 |                  if (!$searcher_on_read) { | 
                                                        
| 157 | -                    $promises[] = \Amp\call(function () use ($searcher_context, $dispatch_table, &$searcher_on_read) { | 
                                                        |
| 157 | +                    $promises[] = \Amp\call(function() use ($searcher_context, $dispatch_table, &$searcher_on_read) { | 
                                                        |
| 158 | 158 | $searcher_on_read = true;  | 
                                                        
| 159 | 159 | $update_target_message = yield $searcher_context->receivePidList();  | 
                                                        
| 160 | 160 | $dispatch_table->updateTargets($update_target_message->target_process_list);  | 
                                                        
@@ -164,7 +164,7 @@ discard block  | 
                                                    ||
| 164 | 164 | $readers = $worker_pool->getReadableWorkers();  | 
                                                        
| 165 | 165 |                  foreach ($readers as $pid => $reader) { | 
                                                        
| 166 | 166 | $promises[] = \Amp\call(  | 
                                                        
| 167 | -                        function () use ($reader, $pid, $worker_pool, $dispatch_table, $output) { | 
                                                        |
| 167 | +                        function() use ($reader, $pid, $worker_pool, $dispatch_table, $output) { | 
                                                        |
| 168 | 168 | $worker_pool->setOnRead($pid);  | 
                                                        
| 169 | 169 | $result = yield $reader->receiveTrace();  | 
                                                        
| 170 | 170 |                              if ($result instanceof TraceMessage) { | 
                                                        
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);  | 
                                                        
| 50 | 50 | |
| 51 | 51 | $loop = $this->reader_loop_provider->getMainLoop(  | 
                                                        
| 52 | - function () use (  | 
                                                        |
| 52 | + function() use (  | 
                                                        |
| 53 | 53 | $channel,  | 
                                                        
| 54 | 54 | $get_trace_settings,  | 
                                                        
| 55 | 55 | $target_process_settings,  | 
                                                        
@@ -15,7 +15,7 @@  | 
                                                    ||
| 15 | 15 | use DI\ContainerBuilder;  | 
                                                        
| 16 | 16 | use PhpProfiler\Lib\Amphp\ContextEntryPointInterface;  | 
                                                        
| 17 | 17 | |
| 18 | -return function (Channel $channel) use ($argv): \Generator { | 
                                                        |
| 18 | +return function(Channel $channel) use ($argv): \Generator { | 
                                                        |
| 19 | 19 | /**  | 
                                                        
| 20 | 20 | * @var class-string<ContextEntryPointInterface> $entry_class  | 
                                                        
| 21 | 21 | * @var string $di_config  |