" . $class . $functionName . "
{$data['file']}
" . $code . "
";
}
/**
* This is a navigation item that will point to code block
*
* @param int $index
* @param int $length
* @param array $stack
* @return string
*/
protected function getNavBlock(int $index, int $length, array $stack): string
{
$active = ($index === 0) ? " active" : "";
$class = (string)($stack['class'] ?? "");
$function = (string)($stack['function'] ?? "");
$functionName = ($function !== "") ? ' (' . $function . ')' : '';
return "