@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ); |
| 33 | 33 | $zend_mm_chunk = $zend_type_reader->readAs('zend_mm_chunk', $zend_mm_chunk_buffer); |
| 34 | 34 | $heap_address = \FFI::cast('long', $zend_mm_chunk->casted->heap)->cdata; |
| 35 | - [$offset,] = $zend_type_reader->getOffsetAndSizeOfMember('zend_mm_chunk', 'heap_slot'); |
|
| 35 | + [$offset, ] = $zend_type_reader->getOffsetAndSizeOfMember('zend_mm_chunk', 'heap_slot'); |
|
| 36 | 36 | if ( |
| 37 | 37 | $heap_address === $p + $offset |
| 38 | 38 | and $zend_mm_chunk->casted->num === 0 |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function isStatic(): bool |
| 41 | 41 | { |
| 42 | - return (bool)($this->flags & (1 << 4)); |
|
| 42 | + return (bool)($this->flags & (1 << 4)); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public static function getCTypeName(): string |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | Pointer $object_pointer, |
| 62 | 62 | ): iterable { |
| 63 | 63 | $class_entry = $dereferencer->deref($this->ce); |
| 64 | - [$table_offset,] = $type_reader->getOffsetAndSizeOfMember( |
|
| 64 | + [$table_offset, ] = $type_reader->getOffsetAndSizeOfMember( |
|
| 65 | 65 | ZendObject::getCTypeName(), |
| 66 | 66 | 'properties_table', |
| 67 | 67 | ); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** @var ZendCompilerGlobals $cg */ |
| 110 | 110 | $cg = $remote_process_dereferencer->deref($cg_pointer); |
| 111 | 111 | |
| 112 | - $dump_symbol_table = function (ZendArray $array) use (&$dump_symbol_table, $remote_process_dereferencer, &$dump_zval) { |
|
| 112 | + $dump_symbol_table = function(ZendArray $array) use (&$dump_symbol_table, $remote_process_dereferencer, &$dump_zval) { |
|
| 113 | 113 | $result = []; |
| 114 | 114 | $pos = 0; |
| 115 | 115 | foreach ($array->getItemIterator($remote_process_dereferencer) as $key => $zval) { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | return $result; |
| 120 | 120 | }; |
| 121 | - $dump_function_table = function (ZendArray $array) use ($dump_symbol_table, $remote_process_dereferencer) { |
|
| 121 | + $dump_function_table = function(ZendArray $array) use ($dump_symbol_table, $remote_process_dereferencer) { |
|
| 122 | 122 | $result = []; |
| 123 | 123 | $pos = 0; |
| 124 | 124 | foreach ($array->getItemIterator($remote_process_dereferencer) as $key => $zval) { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | return $result; |
| 142 | 142 | }; |
| 143 | - $dump_class_constants_table = function (ZendClassEntry $ce) use ($remote_process_dereferencer, $dump_symbol_table, $zend_type_reader, &$dump_zval) { |
|
| 143 | + $dump_class_constants_table = function(ZendClassEntry $ce) use ($remote_process_dereferencer, $dump_symbol_table, $zend_type_reader, &$dump_zval) { |
|
| 144 | 144 | $result = []; |
| 145 | 145 | $pos = 0; |
| 146 | 146 | foreach ($ce->constants_table->getItemIterator($remote_process_dereferencer) as $key => $zval_ptr) { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | return $result; |
| 160 | 160 | }; |
| 161 | - $dump_class_table = function (ZendArray $array) use ($dump_symbol_table, $dump_function_table, $dump_class_constants_table, $remote_process_dereferencer, $zend_type_reader, &$dump_zval) { |
|
| 161 | + $dump_class_table = function(ZendArray $array) use ($dump_symbol_table, $dump_function_table, $dump_class_constants_table, $remote_process_dereferencer, $zend_type_reader, &$dump_zval) { |
|
| 162 | 162 | $result = []; |
| 163 | 163 | $pos = 0; |
| 164 | 164 | foreach ($array->getItemIterator($remote_process_dereferencer) as $key => $zval) { |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | return $result; |
| 191 | 191 | }; |
| 192 | 192 | $recursion_memo = []; |
| 193 | - $dump_zval = function (Zval $zval) use (&$dump_zval, &$recursion_memo, $remote_process_dereferencer, &$dump_symbol_table, $zend_type_reader): int|array { |
|
| 193 | + $dump_zval = function(Zval $zval) use (&$dump_zval, &$recursion_memo, $remote_process_dereferencer, &$dump_symbol_table, $zend_type_reader): int | array { |
|
| 194 | 194 | if ($zval->isArray()) { |
| 195 | 195 | $pos = 0; |
| 196 | 196 | $result = []; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | 'local_variables' => $current_call_frame, |
| 264 | 264 | ]; |
| 265 | 265 | } |
| 266 | - $pick_heap_allocated = function (array $call_frames) { |
|
| 266 | + $pick_heap_allocated = function(array $call_frames) { |
|
| 267 | 267 | $result = []; |
| 268 | 268 | foreach ($call_frames as $key => $frame) { |
| 269 | 269 | $local_variables = []; |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | return $result; |
| 284 | 284 | }; |
| 285 | 285 | |
| 286 | - $sum = function (array $result) use (&$sum) { |
|
| 286 | + $sum = function(array $result) use (&$sum) { |
|
| 287 | 287 | $total = 0; |
| 288 | 288 | foreach ($result as $key => $item) { |
| 289 | 289 | if (is_array($item)) { |