Passed
Branch 0.4.x (1b82a3)
by Shinji
01:49
created
src/Lib/PhpInternals/Types/C/RawString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
     public function __get(string $field_name): string
40 40
     {
41
-        return match ($field_name) {
41
+        return match($field_name) {
42 42
             'value' => $this->value = substr(
43 43
                 \FFI::string($this->cdata->casted),
44 44
                 0,
Please login to merge, or discard this patch.
src/Command/Inspector/TopLikeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         Loop::onReadable(
95 95
             STDIN,
96 96
             /** @param resource $stream */
97
-            function (string $watcher_id, $stream) {
97
+            function(string $watcher_id, $stream) {
98 98
                 $key = fread($stream, 1);
99 99
                 if ($key === 'q') {
100 100
                     Loop::cancel($watcher_id);
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
                 }
103 103
             }
104 104
         );
105
-        Loop::run(function () use ($dispatch_table, $searcher_context, $worker_pool, $formatter) {
105
+        Loop::run(function() use ($dispatch_table, $searcher_context, $worker_pool, $formatter) {
106 106
             $promises = [];
107
-            $promises[] = call(function () use ($searcher_context, $dispatch_table) {
107
+            $promises[] = call(function() use ($searcher_context, $dispatch_table) {
108 108
                 while (1) {
109 109
                     Log::debug('receiving pid List');
110 110
                     $update_target_message = yield $searcher_context->receivePidList();
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             });
119 119
             foreach ($worker_pool->getWorkers() as $reader) {
120 120
                 $promises[] = call(
121
-                    function () use ($reader, $dispatch_table, $formatter) {
121
+                    function() use ($reader, $dispatch_table, $formatter) {
122 122
                         while (1) {
123 123
                             $result = yield $reader->receiveTraceOrDetachWorker();
124 124
                             if ($result instanceof TraceMessage) {
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
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         /** @var TargetPhpSettings<value-of<ZendTypeReader::ALL_SUPPORTED_VERSIONS>> $target_php_settings */
57 57
         $loop = $this->reader_loop_provider->getMainLoop(
58
-            function () use (
58
+            function() use (
59 59
                 $get_trace_settings,
60 60
                 $process_specifier,
61 61
                 $target_php_settings,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $eg_address
64 64
             ): Generator {
65 65
                 if ($loop_settings->stop_process and $this->process_stopper->stop($process_specifier->pid)) {
66
-                    defer($_, fn () => $this->process_stopper->resume($process_specifier->pid));
66
+                    defer($_, fn() => $this->process_stopper->resume($process_specifier->pid));
67 67
                 }
68 68
                 $call_trace = $this->executor_globals_reader->readCallTrace(
69 69
                     $process_specifier->pid,
Please login to merge, or discard this patch.
src/Inspector/Output/TopLike/TopLikeOutputter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $rows = [];
56 56
         $align_right = new TableCellStyle(['align' => 'right']);
57
-        $styled = fn (int|string $content, TableCellStyle $style): TableCell =>
57
+        $styled = fn(int | string $content, TableCellStyle $style): TableCell =>
58 58
             new TableCell(
59 59
                 (string)$content,
60 60
                 ['style' => $style]
Please login to merge, or discard this patch.
src/Inspector/Output/TopLike/Stat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function sort(): void
66 66
     {
67
-        \uasort($this->function_entries, function (FunctionEntry $a, FunctionEntry $b) {
67
+        \uasort($this->function_entries, function(FunctionEntry $a, FunctionEntry $b) {
68 68
             if ($b->count_exclusive === $a->count_exclusive) {
69 69
                 if ($b->count_inclusive === $a->count_inclusive) {
70 70
                     if ($b->total_count_exclusive === $a->total_count_exclusive) {
Please login to merge, or discard this patch.