public function dumpString(Cursor
$cursor, string
$str, bool
$bin, int
$cut) { if ('' ===
$str &&
isset($cursor->attr
['img-data'
],
$cursor->attr
['content-type'
])) { $this->
dumpKey($cursor);
$this->line .=
$this->
style('default',
$cursor->attr
['img-size'
] ?? '',
[]);
$this->line .=
$cursor->depth >=
$this->displayOptions
['maxDepth'
] ? ' <samp class=sf-dump-compact>' : ' <samp class=sf-dump-expanded>';
$this->
endValue($cursor);
$this->line .=
$this->indentPad;
$this->line .=
sprintf('<img src="data:%s;base64,%s" /></samp>',
$cursor->attr
['content-type'
],
base64_encode($cursor->attr
['img-data'
]));
$this->
endValue($cursor);
} else { parent::
dumpString($cursor,
$str,
$bin,
$cut);
} } /**
* @return void
*/
public function enterHash(Cursor
$cursor, int
$type, string|int|null
$class, bool
$hasChild) { if (Cursor::HASH_OBJECT ===
$type) { $cursor->attr
['depth'
] =
$cursor->depth;
}