Passed
Pull Request — 0.9.x (#356)
by Shinji
02:27
created
src/Inspector/Daemon/Reader/Controller/PhpReaderControllerProtocol.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->channel->send($message);
43 43
     }
44 44
 
45
-    public function receiveTraceOrDetachWorker(): TraceMessage|DetachWorkerMessage
45
+    public function receiveTraceOrDetachWorker(): TraceMessage | DetachWorkerMessage
46 46
     {
47 47
         /** @var TraceMessage|DetachWorkerMessage */
48 48
         return $this->channel->receive();
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 Reli\Lib\Log\StateCollector\StateCollector;
20 20
 use Psr\Log\LoggerInterface;
21 21
 
22
-return function (Channel $channel) use ($argv): void {
22
+return function(Channel $channel) use ($argv): void {
23 23
     assert(count($argv) === 4);
24 24
     /**
25 25
      * @var class-string<WorkerEntryPointInterface> $entry_class
Please login to merge, or discard this patch.
src/Lib/PhpProcessReader/PhpMemoryReader/RegionAnalyzer/RegionAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     {
160 160
         $locations = $memory_locations->memory_locations;
161 161
 
162
-        usort($locations, function (MemoryLocation $a, MemoryLocation $b) {
162
+        usort($locations, function(MemoryLocation $a, MemoryLocation $b) {
163 163
             return $a->address <=> $b->address;
164 164
         });
165 165
 
Please login to merge, or discard this patch.
PhpProcessReader/PhpMemoryReader/ReferenceContext/ScalarValueContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     use ReferenceContextDefault;
19 19
 
20 20
     public function __construct(
21
-        public bool|int|float|null|array $value,
21
+        public bool | int | float | null | array $value,
22 22
     ) {
23 23
         if (is_float($value)) {
24 24
             if (\is_infinite($value)) {
Please login to merge, or discard this patch.
src/Lib/FFI/Cast.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 class Cast
21 21
 {
22 22
     /** @param CPointer|null $cdata */
23
-    public static function castPointerToInt(?CData &$cdata): int
23
+    public static function castPointerToInt(?CData & $cdata): int
24 24
     {
25 25
         if ($cdata === null) {
26 26
             return 0;
Please login to merge, or discard this patch.
src/Lib/PhpInternals/Types/Zend/ZendObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             return;
108 108
         }
109 109
         $class_entry = $dereferencer->deref($this->ce);
110
-        [$table_offset,] = $type_reader->getOffsetAndSizeOfMember(
110
+        [$table_offset, ] = $type_reader->getOffsetAndSizeOfMember(
111 111
             ZendObject::getCTypeName(),
112 112
             'properties_table',
113 113
         );
Please login to merge, or discard this patch.
src/Lib/PhpInternals/Types/Zend/ZendMmPageMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function getPageInfo(
27 27
         int $page_index
28
-    ): ZendMmPageInfoSmall|ZendMmPageInfoLarge|ZendMmPageInfoFree {
28
+    ): ZendMmPageInfoSmall | ZendMmPageInfoLarge | ZendMmPageInfoFree {
29 29
         $info = $this->cdata[$page_index];
30 30
         if ($info === 0) {
31 31
             return new ZendMmPageInfoFree();
Please login to merge, or discard this patch.
src/Inspector/Daemon/Searcher/Controller/PhpSearcherController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         readonly private AutoContextRecoveringInterface $auto_context_recovering
29 29
     ) {
30 30
         $this->auto_context_recovering->onRecover(
31
-            function (): void {
31
+            function(): void {
32 32
                 if ($this->settings_already_sent !== null) {
33 33
                     $this->auto_context_recovering
34 34
                         ->getContext()
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             $pid
58 58
         );
59 59
         $this->auto_context_recovering->withAutoRecover(
60
-            function (PhpSearcherControllerProtocolInterface $protocol) use ($message) {
60
+            function(PhpSearcherControllerProtocolInterface $protocol) use ($message) {
61 61
                 $protocol->sendTargetRegex($message);
62 62
             },
63 63
             'failed to send target',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function receivePidList(): UpdateTargetProcessMessage
69 69
     {
70 70
         return $this->auto_context_recovering->withAutoRecover(
71
-            function (PhpSearcherControllerProtocolInterface $protocol) {
71
+            function(PhpSearcherControllerProtocolInterface $protocol) {
72 72
                 return $protocol->receiveUpdateTargetProcess();
73 73
             },
74 74
             'failed to receive pid list',
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Controller/PhpReaderController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         private AutoContextRecoveringInterface $auto_context_recovering,
36 36
     ) {
37 37
         $this->auto_context_recovering->onRecover(
38
-            function () {
38
+            function() {
39 39
                 if ($this->settings_already_sent !== null) {
40 40
                     $this->auto_context_recovering
41 41
                         ->getContext()
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $get_trace_settings
74 74
         );
75 75
         $this->auto_context_recovering->withAutoRecover(
76
-            function (PhpReaderControllerProtocolInterface $protocol) use ($settings_message) {
76
+            function(PhpReaderControllerProtocolInterface $protocol) use ($settings_message) {
77 77
                 $protocol->sendSettings($settings_message);
78 78
                 $this->settings_already_sent = $settings_message;
79 79
             },
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $attach_message = new AttachMessage($process_descriptor);
87 87
         $this->auto_context_recovering->withAutoRecover(
88
-            function (PhpReaderControllerProtocolInterface $protocol) use ($attach_message) {
88
+            function(PhpReaderControllerProtocolInterface $protocol) use ($attach_message) {
89 89
                 $protocol->sendAttach($attach_message);
90 90
                 $this->attach_already_sent = $attach_message;
91 91
             },
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
         );
94 94
     }
95 95
 
96
-    public function receiveTraceOrDetachWorker(): TraceMessage|DetachWorkerMessage
96
+    public function receiveTraceOrDetachWorker(): TraceMessage | DetachWorkerMessage
97 97
     {
98 98
         return $this->auto_context_recovering->withAutoRecover(
99
-            function (PhpReaderControllerProtocolInterface $protocol): TraceMessage|DetachWorkerMessage {
99
+            function(PhpReaderControllerProtocolInterface $protocol): TraceMessage | DetachWorkerMessage {
100 100
                 $message = $protocol->receiveTraceOrDetachWorker();
101 101
                 if ($message instanceof DetachWorkerMessage) {
102 102
                     $this->attach_already_sent = null;
Please login to merge, or discard this patch.