Passed
Pull Request — master (#96)
by Shinji
01:40
created
src/Lib/Process/Exec/Internal/Pcntl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Lib/Process/Exec/TraceeExecutor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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
         );
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
@@ -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/Inspector/RetryingLoopProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         int $interval_on_retry_ns,
34 34
     ): void {
35 35
         // one successful execution is enough
36
-        $loop_canceller = function () use ($try): bool {
36
+        $loop_canceller = function() use ($try): bool {
37 37
             $try();
38 38
             return false;
39 39
         };
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /** @param class-string<\Throwable>[] $retry_on */
29
-    public function do(
29
+    public function do {
30
+        (
30 31
         callable $try,
31 32
         array $retry_on,
32 33
         int $max_retry,
@@ -35,6 +36,7 @@  discard block
 block discarded – undo
35 36
         // one successful execution is enough
36 37
         $loop_canceller = function () use ($try): bool {
37 38
             $try();
39
+    }
38 40
             return false;
39 41
         };
40 42
 
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
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         // be found also. So simply retrying the whole process of finding EG here.
91 91
         $eg_address = null;
92 92
         $this->retrying_loop_provider->do(
93
-            try: function () use (&$eg_address, $process_specifier, $target_php_settings) {
93
+            try: function() use (&$eg_address, $process_specifier, $target_php_settings) {
94 94
                 $eg_address = $this->php_globals_finder->findExecutorGlobals(
95 95
                     $process_specifier,
96 96
                     $target_php_settings
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         assert(is_int($eg_address));
104 104
 
105 105
         $this->loop_provider->getMainLoop(
106
-            function () use (
106
+            function() use (
107 107
                 $get_trace_settings,
108 108
                 $process_specifier,
109 109
                 $target_php_settings,
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 $formatter
114 114
             ): bool {
115 115
                 if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) {
116
-                    defer($_, fn () => $this->process_stopper->resume($process_specifier->pid));
116
+                    defer($_, fn() => $this->process_stopper->resume($process_specifier->pid));
117 117
                 }
118 118
                 $call_trace = $this->executor_globals_reader->readCallTrace(
119 119
                     $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
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         // see the comment at GetTraceCommand::execute()
69 69
         $eg_address = null;
70 70
         $this->retrying_loop_provider->do(
71
-            try: function () use (&$eg_address, $process_specifier, $target_php_settings) {
71
+            try: function() use (&$eg_address, $process_specifier, $target_php_settings) {
72 72
                 $eg_address = $this->php_globals_finder->findExecutorGlobals(
73 73
                     $process_specifier,
74 74
                     $target_php_settings
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
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         // see the comment at GetTraceCommand::execute()
74 74
         $eg_address = null;
75 75
         $this->retrying_loop_provider->do(
76
-            try: function () use (&$eg_address, $process_specifier, $target_php_settings) {
76
+            try: function() use (&$eg_address, $process_specifier, $target_php_settings) {
77 77
                 $eg_address = $this->php_globals_finder->findExecutorGlobals(
78 78
                     $process_specifier,
79 79
                     $target_php_settings
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         assert(is_int($eg_address));
87 87
 
88 88
         $this->loop_provider->getMainLoop(
89
-            function () use ($process_specifier, $target_php_settings, $eg_address, $output): bool {
89
+            function() use ($process_specifier, $target_php_settings, $eg_address, $output): bool {
90 90
                 $output->writeln(
91 91
                     $this->executor_globals_reader->readCurrentFunctionName(
92 92
                         $process_specifier->pid,
Please login to merge, or discard this patch.