Skip to content

Commit

Permalink
Fix code style violations
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Jan 29, 2024
1 parent 3f640d5 commit fada621
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -42,9 +42,10 @@ public function render(Node $node, ChildNodeRendererInterface $childRenderer): \
$infoWords = $node->getInfoWords();
if (\count($infoWords) !== 0 && $infoWords[0] !== '') {
$class = $infoWords[0];
if (!\str_starts_with($class, 'language-')) {
if (! \str_starts_with($class, 'language-')) {
$class = 'language-' . $class;
}

$attrs->append('class', $class);
}

Expand Down

0 comments on commit fada621

Please sign in to comment.