Skip to content

Commit 59a003a

Browse files
committed
use one instead of two spaces
1 parent 0d642a5 commit 59a003a

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
@@ -83,7 +83,7 @@ public function formatErrors(
8383
$filePath = $error->getTraitFilePath() ?? $error->getFilePath();
8484
if ($error->getIdentifier() !== null && $error->canBeIgnored()) {
8585
$message .= "\n";
86-
$message .= '🪪 ' . $error->getIdentifier();
86+
$message .= '🪪 ' . $error->getIdentifier();
8787
}
8888
if ($error->getTip() !== null) {
8989
$tip = $error->getTip();
@@ -93,11 +93,11 @@ public function formatErrors(
9393
if (str_contains($tip, "\n")) {
9494
$lines = explode("\n", $tip);
9595
foreach ($lines as $line) {
96-
$message .= '💡 ' . ltrim($line, '') . "\n";
96+
$message .= '💡 ' . ltrim($line, '') . "\n";
9797
}
9898
$message = rtrim($message, "\n");
9999
} else {
100-
$message .= '💡 ' . $tip;
100+
$message .= '💡 ' . $tip;
101101
}
102102
}
103103
if (is_string($this->editorUrl)) {
@@ -117,7 +117,7 @@ public function formatErrors(
117117
$title = $this->relativePathHelper->getRelativePath($filePath);
118118
}
119119

120-
$message .= "\n✏️ <href=" . OutputFormatter::escape($url) . '>' . $title . '</>';
120+
$message .= "\n✏️ <href=" . OutputFormatter::escape($url) . '>' . $title . '</>';
121121
}
122122
$rows[] = [
123123
$this->formatLineNumber($error->getLine()),

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)