Skip to content

Commit 801b16c

Browse files
committed
CS
1 parent 4827395 commit 801b16c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ux.symfony.com/src/Twig/Components/Code/CodeBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function mount(string $filename): void
5858
throw new \InvalidArgumentException(sprintf('Invalid filename "%s": the line range is not valid.', $filename));
5959
}
6060

61-
$lineStart = (int) $matches[1];
61+
$lineStart = (int) $matches[1];
6262
$lineEnd = (int) ($matches[2] ?? $matches[1]);
6363
if ($lineStart > $lineEnd) {
6464
throw new \InvalidArgumentException(sprintf('Invalid filename "%s": the line range is not valid.', $filename));
@@ -116,7 +116,7 @@ public function getRawSource(): string
116116
private function extractLines(string $content, int $lineStart, int $lineEnd): string
117117
{
118118
$lines = explode("\n", $content);
119-
$lines = array_slice($lines, $lineStart - 1, $lineEnd - $lineStart + 1);
119+
$lines = \array_slice($lines, $lineStart - 1, $lineEnd - $lineStart + 1);
120120

121121
return implode("\n", $lines);
122122
}

ux.symfony.com/src/Twig/Extension/HighlightExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ final class HighlightExtension extends AbstractExtension
2222
{
2323
public function __construct(
2424
private readonly Highlighter $highlighter,
25-
)
26-
{
25+
) {
2726
}
2827

2928
public function getFilters(): array

0 commit comments

Comments
 (0)