File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function mount(string $filename): void
58
58
throw new \InvalidArgumentException (sprintf ('Invalid filename "%s": the line range is not valid. ' , $ filename ));
59
59
}
60
60
61
- $ lineStart = (int ) $ matches [1 ];
61
+ $ lineStart = (int ) $ matches [1 ];
62
62
$ lineEnd = (int ) ($ matches [2 ] ?? $ matches [1 ]);
63
63
if ($ lineStart > $ lineEnd ) {
64
64
throw new \InvalidArgumentException (sprintf ('Invalid filename "%s": the line range is not valid. ' , $ filename ));
@@ -116,7 +116,7 @@ public function getRawSource(): string
116
116
private function extractLines (string $ content , int $ lineStart , int $ lineEnd ): string
117
117
{
118
118
$ lines = explode ("\n" , $ content );
119
- $ lines = array_slice ($ lines , $ lineStart - 1 , $ lineEnd - $ lineStart + 1 );
119
+ $ lines = \ array_slice ($ lines , $ lineStart - 1 , $ lineEnd - $ lineStart + 1 );
120
120
121
121
return implode ("\n" , $ lines );
122
122
}
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ final class HighlightExtension extends AbstractExtension
22
22
{
23
23
public function __construct (
24
24
private readonly Highlighter $ highlighter ,
25
- )
26
- {
25
+ ) {
27
26
}
28
27
29
28
public function getFilters (): array
You can’t perform that action at this time.
0 commit comments