Skip to content

Commit

Permalink
Consistent variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 8, 2024
1 parent 830ddbf commit 8969c03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public static function postprocess(string $html): string
/** @var int $index */
foreach ($lines as $index => $line) {
if (str_starts_with($line, '<!-- HYDE[Filepath]')) {
$torchlight = str_contains($html, static::$torchlightKey);
$highlightedByTorchlight = str_contains($html, static::$torchlightKey);
$path = static::trimHydeDirective($line);
unset($lines[$index]);
$codeBlockLine = $index + 1;
$label = static::resolveTemplate($path, $torchlight);
$label = static::resolveTemplate($path, $highlightedByTorchlight);

$lines[$codeBlockLine] = $torchlight
$lines[$codeBlockLine] = $highlightedByTorchlight
? static::injectLabelToTorchlightCodeLine($label, $lines[$codeBlockLine])
: static::injectLabelToCodeLine($label, $lines[$codeBlockLine]);
}
Expand Down

0 comments on commit 8969c03

Please sign in to comment.