Passed
Pull Request — master (#101)
by Shinji
02:28 queued 46s
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.
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.
src/Lib/Elf/SymbolResolver/Elf64DynamicSymbolResolver.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
     public function resolve(string $symbol_name): Elf64SymbolTableEntry
69 69
     {
70
-        $index = $this->hash_table->lookup($symbol_name, function (string $name, int $index) {
70
+        $index = $this->hash_table->lookup($symbol_name, function(string $name, int $index) {
71 71
             $symbol = $this->symbol_table->lookup($index);
72 72
             return $name === $this->string_table->lookup($symbol->st_name);
73 73
         });
Please login to merge, or discard this patch.
resources/templates/phpspy_with_opcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,5 +15,5 @@
 block discarded – undo
15 15
 /** @var CallTrace $call_trace */
16 16
 ?>
17 17
 <?php foreach ($call_trace->call_frames as $depth => $frame): ?>
18
-<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName() , "\n" ?>
18
+<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName(), "\n" ?>
19 19
 <?php endforeach ?>
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.
src/Command/Inspector/DaemonCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         Loop::onReadable(
101 101
             STDIN,
102 102
             /** @param resource $stream */
103
-            function (string $watcher_id, $stream) {
103
+            function(string $watcher_id, $stream) {
104 104
                 $key = fread($stream, 1);
105 105
                 if ($key === 'q') {
106 106
                     Loop::cancel($watcher_id);
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
                 }
109 109
             }
110 110
         );
111
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
111
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $output, $formatter) {
112 112
             $promises = [];
113
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
113
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
114 114
                 while (1) {
115 115
                     Log::debug('receiving pid List');
116 116
                     $update_target_message = yield $searcher_context->receivePidList();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             });
125 125
             foreach ($worker_pool->getWorkers() as $reader) {
126 126
                 $promises[] = call(
127
-                    function () use ($reader, $dispatch_table, $output, $formatter) {
127
+                    function() use ($reader, $dispatch_table, $output, $formatter) {
128 128
                         while (1) {
129 129
                             $result = yield $reader->receiveTraceOrDetachWorker();
130 130
                             if ($result instanceof TraceMessage) {
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
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             '::',
83 83
             array_filter(
84 84
                 $this->readFunctionName($pid, $php_version, $current_function->typed),
85
-                fn (string $item) => strlen($item)
85
+                fn(string $item) => strlen($item)
86 86
             )
87 87
         );
88 88
     }
Please login to merge, or discard this patch.
config/di.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 return [
44 44
     MemoryReaderInterface::class => autowire(MemoryReader::class),
45
-    ZendTypeReader::class => function () {
45
+    ZendTypeReader::class => function() {
46 46
         return new ZendTypeReader(ZendTypeReader::V80);
47 47
     },
48 48
     SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class),
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
         ->constructorParameter('di_config_file', __DIR__ . '/di.php'),
55 55
     PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class),
56 56
     ProcessSearcherInterface::class => autowire(ProcessSearcher::class),
57
-    Config::class => fn () => Config::load(__DIR__ . '/config.php'),
57
+    Config::class => fn() => Config::load(__DIR__ . '/config.php'),
58 58
     TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class),
59
-    StateCollector::class => function (Container $container) {
59
+    StateCollector::class => function(Container $container) {
60 60
         $collectors = [];
61 61
         $collectors[] = $container->make(ProcessStateCollector::class);
62 62
         $collectors[] = $container->make(CallerStateCollector::class);
63 63
         return new GroupedStateCollector(...$collectors);
64 64
     },
65
-    LoggerInterface::class => function (Config $config) {
65
+    LoggerInterface::class => function(Config $config) {
66 66
         $logger = new Logger('default');
67 67
         $handler = new StreamHandler(
68 68
             $config->get('log.path.default'),
Please login to merge, or discard this patch.