@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function __get(string $field_name): mixed |
| 43 | 43 | { |
| 44 | - return match ($field_name) { |
|
| 44 | + return match($field_name) { |
|
| 45 | 45 | 'func' => $this->casted_cdata->casted->func !== null |
| 46 | 46 | ? Pointer::fromCData( |
| 47 | 47 | ZendFunction::class, |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public function __get(string $field_name) |
| 37 | 37 | { |
| 38 | - return match ($field_name) { |
|
| 38 | + return match($field_name) { |
|
| 39 | 39 | 'filename' => $this->filename = $this->cdata->filename !== null |
| 40 | 40 | ? Pointer::fromCData( |
| 41 | 41 | ZendString::class, |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | public function __get(string $field_name): mixed |
| 70 | 70 | { |
| 71 | - return match ($field_name) { |
|
| 71 | + return match($field_name) { |
|
| 72 | 72 | 'lval' => $this->lval = $this->cdata->lval, |
| 73 | 73 | 'dval' => $this->dval = $this->cdata->dval, |
| 74 | 74 | 'str' => $this->str = Pointer::fromCData( |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function __get(string $field_name): mixed |
| 34 | 34 | { |
| 35 | - return match ($field_name) { |
|
| 35 | + return match($field_name) { |
|
| 36 | 36 | 'current_execute_data' => $this->casted_cdata->casted->current_execute_data !== null |
| 37 | 37 | ? Pointer::fromCData( |
| 38 | 38 | ZendExecuteData::class, |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | public function __get(string $field_name) |
| 45 | 45 | { |
| 46 | - return match ($field_name) { |
|
| 46 | + return match($field_name) { |
|
| 47 | 47 | 'h' => $this->h = $this->casted_cdata->casted->h, |
| 48 | 48 | 'len' => $this->len = $this->casted_cdata->casted->len, |
| 49 | 49 | 'val' => $this->val = Pointer::fromCData( |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function __get(string $field_name): mixed |
| 43 | 43 | { |
| 44 | - return match ($field_name) { |
|
| 44 | + return match($field_name) { |
|
| 45 | 45 | 'zts' => $this->zts = (bool)$this->casted_cdata->casted->zts, |
| 46 | 46 | 'version' => $this->version = new Pointer( |
| 47 | 47 | RawString::class, |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | public function __get(string $field_name): mixed |
| 82 | 82 | { |
| 83 | - return match ($field_name) { |
|
| 83 | + return match($field_name) { |
|
| 84 | 84 | 'flags' => $this->flags = $this->casted_cdata->casted->u->flags, |
| 85 | 85 | 'nTableMask' => $this->nTableMask = $this->casted_cdata->casted->nTableMask, |
| 86 | 86 | 'arData' => $this->arData = Pointer::fromCData( |
@@ -38,7 +38,7 @@ |
||
| 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, |
@@ -94,7 +94,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) { |