| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | |
| 45 | 45 | return [ | 
| 46 | 46 | MemoryReaderInterface::class => autowire(MemoryReader::class), | 
| 47 | -    ZendTypeReader::class => function () { | |
| 47 | +    ZendTypeReader::class => function() { | |
| 48 | 48 | return new ZendTypeReader(ZendTypeReader::V80); | 
| 49 | 49 | }, | 
| 50 | 50 | SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class), | 
| @@ -56,15 +56,15 @@ discard block | ||
| 56 | 56 |          ->constructorParameter('di_config_file', __DIR__ . '/di.php'), | 
| 57 | 57 | PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class), | 
| 58 | 58 | ProcessSearcherInterface::class => autowire(ProcessSearcher::class), | 
| 59 | - Config::class => fn () => Config::load(__DIR__ . '/config.php'), | |
| 59 | + Config::class => fn() => Config::load(__DIR__ . '/config.php'), | |
| 60 | 60 | TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class), | 
| 61 | -    StateCollector::class => function (Container $container) { | |
| 61 | +    StateCollector::class => function(Container $container) { | |
| 62 | 62 | $collectors = []; | 
| 63 | 63 | $collectors[] = $container->make(ProcessStateCollector::class); | 
| 64 | 64 | $collectors[] = $container->make(CallerStateCollector::class); | 
| 65 | 65 | return new GroupedStateCollector(...$collectors); | 
| 66 | 66 | }, | 
| 67 | -    LoggerInterface::class => function (Config $config) { | |
| 67 | +    LoggerInterface::class => function(Config $config) { | |
| 68 | 68 |          $logger = new Logger('default'); | 
| 69 | 69 | $handler = new StreamHandler( | 
| 70 | 70 |              $config->get('log.path.default'), | 
| @@ -16,5 +16,5 @@ | ||
| 16 | 16 | |
| 17 | 17 | /** @var CallTrace $call_trace */ | 
| 18 | 18 | |
| 19 | -echo CompatCallTraceFormatter::getInstance()->format($call_trace) , "\n"; | |
| 19 | +echo CompatCallTraceFormatter::getInstance()->format($call_trace), "\n"; | |
| 20 | 20 | echo "\n"; | 
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | |
| 42 | 42 | $loop_canceller = | 
| 43 | 43 | /** @param-out T $result */ | 
| 44 | -            function () use (&$result, $try): bool { | |
| 44 | +            function() use (&$result, $try): bool { | |
| 45 | 45 | $result = $try(); | 
| 46 | 46 | // one successful execution is enough | 
| 47 | 47 | return false; | 
| @@ -31,13 +31,15 @@ | ||
| 31 | 31 | * @param class-string<\Throwable>[] $retry_on | 
| 32 | 32 | * @return T | 
| 33 | 33 | */ | 
| 34 | - public function do( | |
| 34 | +    public function do { | |
| 35 | + ( | |
| 35 | 36 | callable $try, | 
| 36 | 37 | array $retry_on, | 
| 37 | 38 | int $max_retry, | 
| 38 | 39 | int $interval_on_retry_ns, | 
| 39 | 40 |      ) { | 
| 40 | 41 | $result = null; | 
| 42 | + } | |
| 41 | 43 | |
| 42 | 44 | $loop_canceller = | 
| 43 | 45 | /** @param-out T $result */ | 
| @@ -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) { | 
| @@ -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] | 
| @@ -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, | 
| @@ -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 | } | 
| @@ -92,8 +92,8 @@ | ||
| 92 | 92 | public function ptrace( | 
| 93 | 93 | PtraceRequest $request, | 
| 94 | 94 | int $pid, | 
| 95 | - Addressable|CData|null|int $addr, | |
| 96 | - Addressable|CData|null|int $data, | |
| 95 | + Addressable | CData | null | int $addr, | |
| 96 | + Addressable | CData | null | int $data, | |
| 97 | 97 |      ): int { | 
| 98 | 98 |          if (is_null($addr) or is_int($addr)) { | 
| 99 | 99 | /** @var CInteger */ | 
| @@ -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 |