Skip to content

Commit 4eb682f

Browse files
committed
Revert "use one instead of two spaces"
This reverts commit 59a003a.
1 parent 795cc66 commit 4eb682f

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/Command/ErrorFormatter/TableErrorFormatter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function formatErrors(
8484
$filePath = $error->getTraitFilePath() ?? $error->getFilePath();
8585
if ($error->getIdentifier() !== null && $error->canBeIgnored()) {
8686
$message .= "\n";
87-
$message .= '🪪 ' . $error->getIdentifier();
87+
$message .= '🪪 ' . $error->getIdentifier();
8888
}
8989
if ($error->getTip() !== null) {
9090
$tip = $error->getTip();
@@ -94,11 +94,11 @@ public function formatErrors(
9494
if (str_contains($tip, "\n")) {
9595
$lines = explode("\n", $tip);
9696
foreach ($lines as $line) {
97-
$message .= '💡 ' . ltrim($line, '') . "\n";
97+
$message .= '💡 ' . ltrim($line, '') . "\n";
9898
}
9999
$message = rtrim($message, "\n");
100100
} else {
101-
$message .= '💡 ' . $tip;
101+
$message .= '💡 ' . $tip;
102102
}
103103
}
104104
if (is_string($this->editorUrl)) {
@@ -118,7 +118,7 @@ public function formatErrors(
118118
$title = $this->relativePathHelper->getRelativePath($filePath);
119119
}
120120

121-
$message .= "\n✏️ <href=" . OutputFormatter::escape($url) . '>' . $title . '</>';
121+
$message .= "\n✏️ <href=" . OutputFormatter::escape($url) . '>' . $title . '</>';
122122
}
123123

124124
if (

tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ public function dataFormatterOutputProvider(): iterable
9494
4 Foo
9595
------ -------------------------------------------------------------------
9696
97-
------ ----------
97+
------ -----------
9898
Line foo.php
99-
------ ----------
99+
------ -----------
100100
1 Foo<Bar>
101101
5 Bar
102102
Bar2
103-
💡 a tip
104-
------ ----------
103+
💡 a tip
104+
------ -----------
105105
106106
[ERROR] Found 4 errors
107107
@@ -143,14 +143,14 @@ public function dataFormatterOutputProvider(): iterable
143143
4 Foo
144144
------ -------------------------------------------------------------------
145145
146-
------ ----------
146+
------ -----------
147147
Line foo.php
148-
------ ----------
148+
------ -----------
149149
1 Foo<Bar>
150150
5 Bar
151151
Bar2
152-
💡 a tip
153-
------ ----------
152+
💡 a tip
153+
------ -----------
154154
155155
-- -----------------------
156156
Error
@@ -190,13 +190,13 @@ public function dataFormatterOutputProvider(): iterable
190190
'numGenericErrors' => 0,
191191
'verbose' => false,
192192
'extraEnvVars' => [],
193-
'expected' => ' ------ ---------------
193+
'expected' => ' ------ ----------------
194194
Line foo.php
195-
------ ---------------
195+
------ ----------------
196196
5 Foobar\Buz
197-
🪪 foobar.buz
198-
💡 a tip
199-
------ ---------------
197+
🪪 foobar.buz
198+
💡 a tip
199+
------ ----------------
200200
201201
202202
[ERROR] Found 1 error
@@ -211,13 +211,13 @@ public function dataFormatterOutputProvider(): iterable
211211
'numGenericErrors' => 0,
212212
'verbose' => true,
213213
'extraEnvVars' => [],
214-
'expected' => ' ------ ---------------
214+
'expected' => ' ------ ----------------
215215
Line foo.php
216-
------ ---------------
216+
------ ----------------
217217
5 Foobar\Buz
218-
🪪 foobar.buz
219-
💡 a tip
220-
------ ---------------
218+
🪪 foobar.buz
219+
💡 a tip
220+
------ ----------------
221221
222222
223223
[ERROR] Found 1 error

0 commit comments

Comments
 (0)