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
…omponents
  • Loading branch information
Rafikooo committed Nov 15, 2024
1 parent fb07717 commit bd5a62e
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 bd5a62e

Please sign in to comment.