/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/View/Helper
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/View/Helper/ToolbarHelper.php (3326B)
sort = $sort;
}
/**
* Dump an array of nodes
*
* @param \Cake\Error\Debug\NodeInterface[] $nodes An array of dumped variables.
* Variables should be keyed by the name they had in the view.
* @return string Formatted HTML
*/
public function dumpNodes(array $nodes): string
{
/** @psalm-suppress InternalMethod */
$formatter = new HtmlFormatter();
if ($this->sort) {
ksort($nodes);
}
$items = [];
foreach ($nodes as $key => $value) {
$items[] = new ArrayItemNode(new ScalarNode('string', $key), $value);
}
$root = new ArrayNode($items);
return implode([
'
',
$formatter->dump($root),
'
',
]);
}
/**
* Dump the value in $value into an interactive HTML output.
*
* @param mixed $value The value to output.
* @return string Formatted HTML
* @deprecated 4.4.0
*/
public function dump($value)
{
$debugger = Debugger::getInstance();
$exportFormatter = $debugger->getConfig('exportFormatter');
$restore = false;
if ($exportFormatter !== HtmlFormatter::class) {
$restore = true;
$debugger->setConfig('exportFormatter', HtmlFormatter::class);
}
if ($this->sort && is_array($value)) {
ksort($value);
}
$contents = Debugger::exportVar($value, 25);
if ($restore) {
$debugger->setConfig('exportFormatter', $exportFormatter);
}
return implode([
'
',
$contents,
'
',
]);
}
}