Skip to content

Commit 073c055

Browse files
committed
Cleanup code
1 parent 8f70326 commit 073c055

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/testing/src/Support/HtmlTesting/DumpsDocumentState.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,11 @@ public function getTextRepresentation(): string
5353
});
5454

5555
$text = explode("\n", $text);
56-
5756
$text = array_map('trim', $text);
5857
$text = array_filter($text, 'trim');
5958
$text = array_filter($text, fn (string $line): bool => in_array($line, ['(Inline style content)', '(Inline script content)']) === false);
6059

61-
$text = implode("\n", $text);
62-
63-
return trim($text);
60+
return trim(implode("\n", $text));
6461
}
6562

6663
public function dump(bool $writeHtml = true): string

0 commit comments

Comments
 (0)