Passed
Pull Request — 0.9.x (#325)
by Shinji
01:52
created
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.