Passed
Branch 0.6.x (928e1f)
by Shinji
02:35
created
config/di.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'),
Please login to merge, or discard this patch.
resources/templates/compat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,5 +16,5 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/Inspector/RetryingLoopProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,13 +31,15 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/Inspector/Output/TopLike/Stat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Inspector/Output/TopLike/TopLikeOutputter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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]
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Worker/PhpReaderTraceLoop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Lib/Libc/Sys/Ptrace/Ptrace.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Lib/Libc/Sys/Ptrace/PtraceX64.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/Lib/Amphp/worker-entry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.