Passed
Push — master ( a7c06d...09391a )
by Shinji
02:48 queued 01:03
created
src/Lib/Elf/Tls/LibThreadDbTlsFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Lib/Elf/Process/ProcessModuleSymbolReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/Inspector/GetTraceCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Command/Inspector/GetCurrentFunctionNameCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
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,
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 use PhpProfiler\Lib\Amphp\WorkerEntryPointInterface;
17 17
 use PhpProfiler\Lib\Amphp\MessageProtocolInterface;
18 18
 
19
-return function (Channel $channel) use ($argv): \Generator {
19
+return function(Channel $channel) use ($argv): \Generator {
20 20
     /**
21 21
      * @var class-string<WorkerEntryPointInterface> $entry_class
22 22
      * @var class-string<MessageProtocolInterface> $protocol_class
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Worker/PhpReaderTraceLoop.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
52 52
 
53 53
         $loop = $this->reader_loop_provider->getMainLoop(
54
-            function () use (
54
+            function() use (
55 55
                 $get_trace_settings,
56 56
                 $target_process_settings,
57 57
                 $target_php_settings,
Please login to merge, or discard this patch.
src/Lib/PhpProcessReader/PhpMemoryReader/ExecutorGlobalsReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             '::',
87 87
             array_filter(
88 88
                 $this->readFunctionName($pid, $php_version, $current_function),
89
-                fn (string $item) => strlen($item)
89
+                fn(string $item) => strlen($item)
90 90
             )
91 91
         );
92 92
     }
Please login to merge, or discard this patch.
src/Command/Inspector/DaemonCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         Loop::onReadable(
117 117
             STDIN,
118 118
             /** @param resource $stream */
119
-            function (string $watcher_id, $stream) {
119
+            function(string $watcher_id, $stream) {
120 120
                 $key = fread($stream, 1);
121 121
                 if ($key === 'q') {
122 122
                     Loop::cancel($watcher_id);
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
                 }
125 125
             }
126 126
         );
127
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
127
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
128 128
             $promises = [];
129
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
129
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
130 130
                 while (1) {
131 131
                     $update_target_message = yield $searcher_context->receivePidList();
132 132
                     $dispatch_table->updateTargets($update_target_message->target_process_list);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             });
135 135
             foreach ($worker_pool->getWorkers() as $reader) {
136 136
                 $promises[] = call(
137
-                    function () use ($reader, $dispatch_table, $output, $formatter) {
137
+                    function() use ($reader, $dispatch_table, $output, $formatter) {
138 138
                         while (1) {
139 139
                             $result = yield $reader->receiveTraceOrDetachWorker();
140 140
                             if ($result instanceof TraceMessage) {
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,4 +16,4 @@
 block discarded – undo
16 16
 
17 17
 /** @var CallTrace $call_trace */
18 18
 
19
-echo CompatCallTraceFormatter::getInstance()->format($call_trace) , PHP_EOL;
19
+echo CompatCallTraceFormatter::getInstance()->format($call_trace), PHP_EOL;
Please login to merge, or discard this patch.