Passed
Pull Request — master (#9)
by Shinji
12:30
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/SymbolResolver/Elf64DynamicSymbolResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     public function resolve(string $symbol_name): Elf64SymbolTableEntry
83 83
     {
84
-        $index = $this->hash_table->lookup($symbol_name, function (string $name, int $index) {
84
+        $index = $this->hash_table->lookup($symbol_name, function(string $name, int $index) {
85 85
             $symbol = $this->symbol_table->lookup($index);
86 86
             return $name === $this->string_table->lookup($symbol->st_name);
87 87
         });
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.
config/di.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 return [
25 25
     MemoryReaderInterface::class => autowire(MemoryReader::class),
26
-    ZendTypeReader::class => function () {
26
+    ZendTypeReader::class => function() {
27 27
         return new ZendTypeReader(ZendTypeReader::V74);
28 28
     },
29 29
     SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::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
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
         }
50 50
         exec('stty -icanon -echo');
51 51
 
52
-        Loop::run(function () use (&$readers, $output) {
52
+        Loop::run(function() use (&$readers, $output) {
53 53
             Loop::onReadable(
54 54
                 STDIN,
55 55
                 /** @param resource $stream */
56
-                function (string $watcher_id, $stream) {
56
+                function(string $watcher_id, $stream) {
57 57
                     $key = fread($stream, 1);
58 58
                     if ($key === 'q') {
59 59
                         Loop::cancel($watcher_id);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                     }
62 62
                 }
63 63
             );
64
-            Loop::repeat(10, function () use (&$readers, $output) {
64
+            Loop::repeat(10, function() use (&$readers, $output) {
65 65
                 /** @var array<int, Context\Context> $readers */
66 66
 
67 67
                 $promises = [];
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                         continue;
73 73
                     }
74 74
                     $promises[] = \Amp\call(
75
-                        function () use ($reader, &$readers, $pid, $output) {
75
+                        function() use ($reader, &$readers, $pid, $output) {
76 76
                             /** @psalm-suppress MixedArrayAccess*/
77 77
                             unset($readers[$pid]);
78 78
                             /** @var string $result */
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/Inspector/Daemon/Searcher/Context/php-searcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 use DI\ContainerBuilder;
16 16
 use PhpProfiler\Inspector\Daemon\Searcher\PhpSearcherTask;
17 17
 
18
-return function (Channel $channel): \Generator {
18
+return function(Channel $channel): \Generator {
19 19
     $container = (new ContainerBuilder())->addDefinitions(__DIR__ . '/../../../../../config/di.php')->build();
20 20
 
21 21
     /** @var PhpSearcherTask $searcher */
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/PhpReaderTask.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.