Skip to content

Commit

Permalink
[TwigHooks] Mark Debug Info With Different Colors For Templates And C…
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Nov 18, 2024
2 parents fb07717 + bd5a62e commit fd6155e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ private function dumpHookableProfile(HookableProfile $hookableProfile, string $p
};

$str = sprintf(
'%s└ <span><span class="status-success">(%s)</span> [↑ %d, ⏲ %d ms] %s (%s)</span>',
'%s└ <span><span class="%s">(%s)</span> [↑ %d, ⏲ %d ms] %s (%s)</span>',
$prefix,
$targetName === 'Template' ? 'status-success' : 'status-warning',
$targetName,
$hookableProfile->getHookable()->priority(),
$hookableProfile->getDuration(),
Expand Down

0 comments on commit fd6155e

Please sign in to comment.