Passed
Pull Request — master (#125)
by
unknown
01:34
created
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
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
     public function ptrace(
91 91
         PtraceRequest $request,
92 92
         int $pid,
93
-        Addressable|CData|null|int $addr,
94
-        Addressable|CData|null|int $data,
93
+        Addressable | CData | null | int $addr,
94
+        Addressable | CData | null | int $data,
95 95
     ): int {
96 96
         if (is_null($addr) or is_int($addr)) {
97 97
             /** @var CInteger */
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
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $eg_address = $this->php_globals_finder->findExecutorGlobals($process_specifier, $target_php_settings);
53 53
 
54 54
         $loop = $this->reader_loop_provider->getMainLoop(
55
-            function () use (
55
+            function() use (
56 56
                 $get_trace_settings,
57 57
                 $process_specifier,
58 58
                 $target_php_settings,
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 $eg_address
61 61
             ): Generator {
62 62
                 if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) {
63
-                    defer($_, fn () => $this->process_stopper->resume($process_specifier->pid));
63
+                    defer($_, fn() => $this->process_stopper->resume($process_specifier->pid));
64 64
                 }
65 65
                 $call_trace = $this->executor_globals_reader->readCallTrace(
66 66
                     $process_specifier->pid,
Please login to merge, or discard this patch.
src/Command/Inspector/GetTraceCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         // at this point. In that case the TLS block can't be located, then the address of EG can't
90 90
         // be found also. So simply retrying the whole process of finding EG here.
91 91
         $eg_address = $this->retrying_loop_provider->do(
92
-            try: fn () => $this->php_globals_finder->findExecutorGlobals(
92
+            try: fn() => $this->php_globals_finder->findExecutorGlobals(
93 93
                 $process_specifier,
94 94
                 $target_php_settings
95 95
             ),
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         );
100 100
 
101 101
         $this->loop_provider->getMainLoop(
102
-            function () use (
102
+            function() use (
103 103
                 $get_trace_settings,
104 104
                 $process_specifier,
105 105
                 $target_php_settings,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 $formatter
110 110
             ): bool {
111 111
                 if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) {
112
-                    defer($_, fn () => $this->process_stopper->resume($process_specifier->pid));
112
+                    defer($_, fn() => $this->process_stopper->resume($process_specifier->pid));
113 113
                 }
114 114
                 $call_trace = $this->executor_globals_reader->readCallTrace(
115 115
                     $process_specifier->pid,
Please login to merge, or discard this patch.
src/Command/Inspector/GetCurrentFunctionNameCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         // see the comment at GetTraceCommand::execute()
74 74
         $eg_address = $this->retrying_loop_provider->do(
75
-            try: fn () => $this->php_globals_finder->findExecutorGlobals(
75
+            try: fn() => $this->php_globals_finder->findExecutorGlobals(
76 76
                 $process_specifier,
77 77
                 $target_php_settings
78 78
             ),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         );
83 83
 
84 84
         $this->loop_provider->getMainLoop(
85
-            function () use ($process_specifier, $target_php_settings, $eg_address, $output): bool {
85
+            function() use ($process_specifier, $target_php_settings, $eg_address, $output): bool {
86 86
                 $output->writeln(
87 87
                     $this->executor_globals_reader->readCurrentFunctionName(
88 88
                         $process_specifier->pid,
Please login to merge, or discard this patch.
src/Command/Inspector/GetEgAddressCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         // see the comment at GetTraceCommand::execute()
69 69
         $eg_address = $this->retrying_loop_provider->do(
70
-            try: fn () => $this->php_globals_finder->findExecutorGlobals(
70
+            try: fn() => $this->php_globals_finder->findExecutorGlobals(
71 71
                 $process_specifier,
72 72
                 $target_php_settings
73 73
             ),
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/Command/Converter/SpeedscopeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     /** @param iterable<CallTrace> $call_frames */
83 83
     private function collectFrames(iterable $call_frames): array
84 84
     {
85
-        $mapper = fn (array $value): string => \json_encode($value);
85
+        $mapper = fn(array $value): string => \json_encode($value);
86 86
         $trace_map = [];
87 87
         $result_frames = [];
88 88
         $sampled_stacks = [];
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.