@@ -42,7 +42,7 @@ |
||
| 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(); |
@@ -19,7 +19,7 @@ |
||
| 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 |
@@ -159,7 +159,7 @@ |
||
| 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 | |
@@ -18,7 +18,7 @@ |
||
| 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)) { |
@@ -20,7 +20,7 @@ |
||
| 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; |
@@ -107,7 +107,7 @@ |
||
| 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 | ); |
@@ -25,7 +25,7 @@ |
||
| 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(); |
@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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', |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |