Skip to content

Commit 71324f9

Browse files
committed
Make sure all lines are terminated by LF
1 parent a98a55e commit 71324f9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/CliHighlighter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use function sprintf;
88

9-
use const PHP_EOL;
10-
119
final class CliHighlighter implements Highlighter
1210
{
1311
public const HIGHLIGHT_FUNCTIONS = 'functions';
@@ -59,7 +57,7 @@ public function highlightError(string $value): string
5957
{
6058
return sprintf(
6159
'%s%s%s%s',
62-
PHP_EOL,
60+
"\n",
6361
$this->escapeSequences[self::HIGHLIGHT_ERROR],
6462
$value,
6563
"\x1b[0m",

src/HtmlHighlighter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use const ENT_COMPAT;
1212
use const ENT_IGNORE;
13-
use const PHP_EOL;
1413

1514
final class HtmlHighlighter implements Highlighter
1615
{
@@ -70,7 +69,7 @@ public function highlightError(string $value): string
7069
{
7170
return sprintf(
7271
'%s<span %s>%s</span>',
73-
PHP_EOL,
72+
"\n",
7473
$this->htmlAttributes[self::HIGHLIGHT_ERROR],
7574
$value,
7675
);

0 commit comments

Comments
 (0)