aboutsummaryrefslogtreecommitdiff
path: root/templates/debug/trace-row.php
blob: f3d29be0c87060123abe9e77ac54879a2a61f207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$file = ltrim(str_replace($GLOBALS['STUDIP_BASE_PATH'], '', $file), '/');
$trac = htmlReady("https://develop.studip.de/trac/browser/trunk/{$file}#L{$line}");
?>
<code>
    <?= htmlReady(sprintf(
        '%s(%s)',
        isset($class) ? "{$class}{$type}{$function}" : $function,
        implode(', ', array_map(function ($arg) { return is_object($arg) ? get_class($arg) : (string) $arg; }, $args))
    )) ?>
</code>
<span>called at</span>
<a href="<?= $trac ?>" target="_blank"><?= htmlReady("{$file}:{$line}") ?></a>